Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Print previous line
Name: johan Date: November 28, 2008 at 10:54:18 Pacific OS: Solaris 9 CPU/Ram: 1
Comment:
How I can search file and if word match, script will print that line and, for example, five previous line. (awk or other)
Summary: Hello, Currently am positioning at the 100th line with the AWK. How can I read & print its previous line#99th. Your reply is greatly appreciated. Thanks!! ...
Summary: Hi Guru's, I would like to grep a particular string in a file and the output should print the line containing the grep'd string and next line also. Can this be done using native grep or thru some scri...
Summary: Hi all, I have a text file and I want to clean up the file by only print those lines start with the date. Is there anyway I can do that? Code: [?25h[2J[?4l[?1l[0m[1;24r[?3h[?3h ...