Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Call to grep unnecessary' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Call to grep unnecessary
Authored by: gvaughn on Feb 18, '05 02:17:52PM

This can also be simplified by getting rid of grep. awk itself contains a pattern matching engine as powerful as grep.

grep "PrimaryService" | awk '{print $3}'

can be replaced with:

awk '/PrimaryService/ { print $3}'

[ Reply to This | # ]