You are here

11 February 2014

This snippet shows you how to display a line from a text file by line number.

Source code viewer
  1. # Replace LINE_NUMBER with line number.
  2. sed 'LINE_NUMBERq;d' evm.sql
  4. # View the results with less if line is really long.
  5. sed 'LINE_NUMBERq;d' evm.sql | less
Programming Language: Bash