how to print the previous line in a file?

January 28, 2011 at 04:50:02
Specs: Windows XP
after searching for a particular pattern in a file, how to print the previous line ?

See More: how to print the previous line in a file?

Report •

#1
January 28, 2011 at 07:27:53
The newer versions of grep support -A and -B options. If yours does not, check out this link:

http://www.computing.net/answers/un...


Report •
Related Solutions


Ask Question