damonparker.org
by damonp on November 9, 2006
I always forget this…
Popularity: 99% [?]
{ 7 comments… read them below or add one }
Thanks a lot, save my day! Me too, always forget the backslash…
Reply
Haha, I’ve searched for this one to make my final command (don’t output empty lines and lines starting with comments):
grep -v “^#\|^$” my.cnf
Ha! I’ve just spent ages searching for this. Great! My own use: # iwlist ath0 scan | grep ‘Cell\|ESS\|Freq’
Far more useful output. Quick site survey. Cheers!
Thanks, very useful. Good catch on the backslash.
egrep And Operator= use egrep twice! first to filter out locations, second filter out titles $ egrep -i ‘city1|city2′ joblist | egrep -i ‘director|manager’ > joblist2
Thanks! I always forget the backslash!
Why not supporting standard regex in perl and js etc…that is dumb I spent ages until I got here…thanks!
Leave a Comment
Name *
E-mail *
Website
Notify me of followup comments via e-mail
Previous post: RPM Remove Shortcut
Next post: ZenCart Reports Search Function
Microsoft / Windows Data Architecture Open Source Lifehacks Sites SQL Travel Technical SEO Software Security Random Thoughts Dictionary Development Ecommerce General Apple / Mac PHP SysAdmin Snippets
Enter your email address:
Delivered by FeedBurner
{ 7 comments… read them below or add one }
Thanks a lot, save my day! Me too, always forget the backslash…
Haha, I’ve searched for this one to make my final command (don’t output empty lines and lines starting with comments):
grep -v “^#\|^$” my.cnf
Ha! I’ve just spent ages searching for this.
Great!
My own use:
# iwlist ath0 scan | grep ‘Cell\|ESS\|Freq’
Far more useful output. Quick site survey.
Cheers!
Thanks, very useful. Good catch on the backslash.
egrep And Operator= use egrep twice!
first to filter out locations, second filter out titles
$ egrep -i ‘city1|city2′ joblist | egrep -i ‘director|manager’ > joblist2
Thanks! I always forget the backslash!
Why not supporting standard regex in perl and js etc…that is dumb I spent ages until I got here…thanks!