On Tue, Feb 22, 2011 at 12:51 PM, Pascal Stumpf <pascal.stu...@cubes.de> wrote: > On Tue, Feb 22, 2011 at 12:52:24PM -0300, Iruatc Souza wrote: >> On Tue, Feb 22, 2011 at 6:08 AM, patrick keshishian <sids...@boxsoft.com> >> wrote: >> > my that's awkward. >> > >> >> if you can't combine unix tools, you should be looking at perl. >> >> iru >> >> > > I bet everyone here knows one can achieve the same results with awk, > perl, C, python, ruby, tcl, Haskell, java and goat sacrifices at > fullmoon. That doesn't mean any of those is the easiest or most > convenient tool for the job. Using a fully-blown programming language > just to output a filename and a line matching a regex is plain overkill. >
then make the awk line a function or a script don't add more flags to grep that are hard to guess what they do -H for "header"? what does it mean? have you looked at how many flags ls(1) can have? it's a nightmare