• 0

Print a line of a local file in using command line

Print 15th line using sed

sed -n "15p" hello-world.js

Print 15-25 line using sed

sed -n "15,25p" hello-world.js

Print 15-25 line with line numbers using sed

sed -n "10,20p" hello-world.js | less -N