[NTLUG:Discuss] scratching head

Fred James fredjame at concentric.net
Thu Feb 27 18:55:37 CST 2003


Steve Baker wrote:

> Carl Haddick wrote:
>
>> In other words, type all lines in all text files that contain at least
>> three arbitrary characters, skipping lines that are 0, 1, or 2
>> characters in length.
>>
>> Did I get it right? Do I win anything?
>
>
> That's certainly what it does...the question is why? - and why is it in
> someones .sig ?
>
>>>  find . -type f | xargs file | grep -i text | cut -f1 -d: | xargs 
>>> grep "..."
>>
>
> ...and if that's what it does, it's got a bug in it.  Suppose I have 
> file called:
>
>    texture_map.png
>
> ...well, let's just say it's not going to be a pretty sight!
> ---------------------------- Steve Baker -------------------------
> HomeEmail: <sjbaker1 at airmail.net>    WorkEmail: <sjbaker at link.com>
> HomePage : http://www.sjbaker.org
> Projects : http://plib.sf.net    http://tuxaqfh.sf.net
>            http://tuxkart.sf.net http://prettypoly.sf.net
> -----BEGIN GEEK CODE BLOCK-----
> GCS d-- s:+ a+ C++++$ UL+++$ P--- L++++$ E--- W+++ N o+ K? w--- !O M- 
> V-- PS++ PE- Y-- PGP-- t+ 5 X R+++ tv b++ DI++ D G+ e++ h--(-) r+++ y++++
> -----END GEEK CODE BLOCK-----
>
>
> _______________________________________________
> https://ntlug.org/mailman/listinfo/discuss
>
>
OK - problem seen - but short of writing a program what would you 
suggest to get around it?

-- 
find . -type f | xargs file | grep -i text | cut -f1 -d: | xargs grep "..."





More information about the Discuss mailing list