Friday, August 14, 2015

Bash commands

awk '/string_to_find/{ print NR; exit }' fileName   ----- for finding the line number of the matching string

tail --lines=+line_number_here fileName | less  -----  for displaying the lines of a file starting at a specific line

No comments:

Post a Comment