[plug] A bit of gross bash code
The Thought Assassin
assassin at live.wasp.net.au
Wed Mar 7 17:02:34 WST 2001
On Wed, 7 Mar 2001, The Thought Assassin wrote:
> ls -ln /dev|grep "^[c|b|u]" |
> sed 's/^\(.\)......... *\([0-9]*\) *\([0-9]*\) *\([0-9]*\) *\([0-9]*\)\, *\([0-9]*\)..............\(.*\)$/\1:\3:\4:\5:\6:\7/'
It occurs to me that your mailreader will probably linewrap this at a
convenient space character. Don't cut+paste and leave that space character
out, or it will not work as intended.
-Greg
More information about the plug
mailing list