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.
usage of grep cmd
Name: urmilaravishankar Date: September 30, 2007 at 07:05:35 Pacific OS: linux CPU/Ram: AMD anthlon,32 MB
Comment:
Hi Kindly give me the exact usage of grep such that it should display only lines with single words. In awk its cat filename|awk 'NF<2 {print $0}' will display lines with single word only
Summary: myVariable=`grep -e ''` will store the output of the grep in the variable $myVariable. Note that those are backward quotes that I added, not the forward quotes that you used for the grep. ...
Summary: Is there any way to show a kind of historical TOP. Basicly I run a lot of game servers, each under a different user account. This way i can see (with TOP) how much CPU each server (user) is using. I n...
Summary: dear linux friends i am writing a shell script to manage users and groups. i came a cross a problem now. in my finding user section i have written to prompt the user to enter the name the user wnats t...