What is the best way to output from a file starting from a specific line (big number like 70000). Something like:
cat --line=70000 <file>
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
If instead of a line number you need to start listing at the line containing a given
$phrase, try the following.
more -1000 +/"$phrase" yourfilename | sed '1,4d'
The -1000 will continuously list text for up to 1000 lines; you can change this as needed.
sed command will chop off the first 4 lines of output, which were automatically inserted by
more, containing a blank line, the message "... skipping", and the two lines preceding your intended starting line. I guess this may vary depending on your system.