We Recommend

bash Cookbook: Solutions and Examples for bash Users bash Cookbook: Solutions and Examples for bash Users
bash Cookbook teaches shell scripting the way Unix masters practice the craft. It presents a variety of recipes and tricks for all levels of shell programmers so that anyone can become a proficient user of the most common Unix shell -- the bash shell -- and cygwin or other popular Unix emulation packages.


Posted By

noah on 07/15/08


Tagged

number debug code count text read line document debugging tips cat tail todo


Versions (?)


Dump a file to the terminal, starting at some line number


Published in: Bash 


tail -n+99 foo.txt will read everything from foo.txt, starting with line 99. Pipe that into more and you just look at the few line(s) you really need.

Todo: I'd like to learn to narrow this so I only print the lines I want to see, not the lines AND everything after.

  1. tail -n+99 foo.txt | more

Report this snippet 

You need to login to post a comment.