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 Help
Name: ChrisS Date: December 9, 2003 at 15:13:47 Pacific OS: Unix CPU/Ram: Solaris
Comment:
I need to search all my log files for 2 specific words and list only the files that contain them. These words will not be on the same line. I can do a grep on one word: >grep -il chris * I tried >grep -il "chris".*"help" *.txt but it stops at the new line char..
I have tried to pipe "|" one grep into another but it doesn't seem to work. Can anyone help with the syntax to do it in one command?
Summary: Hi, I am trying to extract the lines from an audit log file that contain user input date and user input userid. The following grep is working fine, but it is picking the date that i have not asked, b...
Summary: Hey...I have trouble with one of my homework problem. Anyone wants to help me out? Thanks in advance... Use grep to simulate the command sort file1 and uniq file1. ...
Summary: I have a script that grep for a string in all the log files in the directory. The grep results will be output to a text file. grep error *.log >> /tmp/error.txt the script alone will run perfectly if...