[NTLUG:Discuss] scratching head

Carl Haddick sysmail at glade.net
Thu Feb 27 15:28:14 CST 2003


OK, I'll bite.

The signature with the pipelined commands - shooting from the hip, I
would say this finds 'normal files', characterizes them with 'file',
takes the text types and cuts the file name out of the 'file' command's
output, and then greps them for "...".

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?

:-)

Carl

> 
> 
> -- 
> find . -type f | xargs file | grep -i text | cut -f1 -d: | xargs grep "..."
> 
> 
> 
> _______________________________________________
> https://ntlug.org/mailman/listinfo/discuss
> 

-- 
Carl Haddick                                http://www.glade.net
GladeNet Communications             alt email: support at glade.net
200 South Red River                               (254) 562-6381
Mexia, TX 76667                                   (877) 373-3882



More information about the Discuss mailing list