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.
Grep output help
Name: sfAdmin Date: January 7, 2008 at 11:35:54 Pacific OS: Linux CPU/Ram: n/a Product: n/a
Comment:
Hello,
I need to return all the text from a logfile after Jan 07. When I use grep Jan 07 it only returns the lines with this text, but I need all the lines after the first match of Jan 07. Does anyone know the command to get that.
Summary: Not at a unix box, but I believe you could, if the files are similary named OR in the same directory: for files in `ls`;do if [[ `grep -il chris $files` != "" && `grep -il help $files` != "" ]];then e...
Summary: Using the korn shells random number generator, I'd like to produce the following output... Number: x where x is "refreshed" every second. My lousy ouput looks like... Answer: x Answer: x Answer: x etc...
Summary: Hi All, In a file I want to grep a string. I want to get a result not only greping line but also the 4 lines below it. Example: File A contains following lines ABC 123 11/07/05 MONDAY FROM LEICES...