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.
Using Grep
Name: H J Calhoun Date: January 28, 2002 at 20:33:10 Pacific
Comment:
Hello:
I need to use grep to pull a pattern of information from the /etc/group/ file which contains four fields and filter this information into a file can someone help get me started on how to do this.
Summary: Can anyone help with using grep to search a file for a string stored in a variable. ie x=20:30 grep $x filename It works fine when I can manually use the hard code, but I require the use of a stored ...
Summary: The man page for grep -b says "Precedes each line by the block number on which it was found. Use this flag to help find disk block numbers by context" Does this mean when I do a grep -b on a file it ...
Summary: Using the KORN SHELL ONLY, is there any way that I can grep for a string in column/field 1 only? For instance in a data file named inventory, i have: black goodyear tire black michelin tire film win...