[plug] A bit of gross bash code

The Thought Assassin assassin at live.wasp.net.au
Wed Mar 7 16:29:43 WST 2001


On Wed, 7 Mar 2001, The Thought Assassin wrote:
> ls -ln /dev|
> grep "^[c|b|u]" |tr -s " ", ":"|cut -d: -f1,3,4,5,6,10 |cut -c1,11-
>
> one caveat is that it will choke on files with spaces or colons in them.

Sorry, make that filenames with spaces or colons in them. :)
If any of it doesn't make sense to a novice shell scripter, point it out.

-Greg




More information about the plug mailing list