in reply to piglist
Which givesfind /usr/local -type d | xargs du -s
6784 /usr/local 88 /usr/local/bin 24 /usr/local/OpenSourceLicenses 8 /usr/local/OpenSourceVersions 6664 /usr/local/share 6664 /usr/local/share/man 200 /usr/local/share/man/man1 6464 /usr/local/share/man/man3
You might want to think about giving an option to mimic this minimal, data only output so it'd be easy to pipe the output into another script or program and not have to weed out ---- and version lines. Maybe two options, one for the version of the program (instead of outputing it by default, -version) and one for pretty formatting (-pretty-print maybe?). Just a thought. Good work, though.
---
echo S 1 [ Y V U | perl -ane 'print reverse map { $_ = chr(ord($_)-1) } @F;'
Warning: Any code posted by tuxz0r is untested, unless otherwise stated, and is used at your own risk.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: piglist
by hsinclai (Deacon) on Nov 17, 2007 at 02:43 UTC | |
by parv (Parson) on Nov 17, 2007 at 04:04 UTC | |
by jasonk (Parson) on Nov 18, 2007 at 19:50 UTC |