grep - what arguments do you usually specify?
Posted
by meder
on Super User
See other posts from Super User
or by meder
Published on 2009-07-27T18:44:30Z
Indexed on
2010/05/13
16:55 UTC
Read the original article
Hit count: 318
My most common grep line is just..
grep -IRl "text" *
However I'm kinda getting tired of retyping this over and over - is there some way I can make an alias command so that those arguments are always enabled?
And, I was wondering what arguments you usually specify for text searching - my two arguments 'R
' for recursion, 'I
' for not including binary types like jpg/gif, and 'l
' for line number seem a bit too minimal. Which arguments do you use?
© Super User or respective owner