[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] Grepping only text files (off-topic: shell)



1999-06-30-19:09:46 David L. Nicol:
> alias sgrep "file * | grep 'text$' | cut -f1 -d: |xargs grep "

sgrep(){ file *|awk -F: '/text$/{print $1}'|xargs grep ${1+"$@"}; }

-Bennett

==== Want to unsubscribe from Fun With Perl?
==== Well, if you insist... Send mail with body "unsubscribe" to
==== fwp-request@technofile.org