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 bash 18 print a line 1 sed 1 shell 2 special editor 1 Please enable JavaScript to view the comments powered by Disqus.