in reply to Re: piglist
in thread piglist

ooh good suggestion for having "bare" output .. yeah

Note though my script sorts the list in proper order (not by just the leading number), so the output is nicer than what  find /dir -type d | xargs du -s |sort gives ya.

Thanks! Harold

Replies are listed 'Best First'.
Re^3: piglist
by parv (Parson) on Nov 17, 2007 at 04:04 UTC

    (If I guessed correctly given your reply & code then ...) Ah, but one would use the number sorting option ...

    du ... | sort -k1,1n [-k2]
Re^3: piglist
by jasonk (Parson) on Nov 18, 2007 at 19:50 UTC

    You could get the same effect by using find /dir -type d | xargs du -s | sort -n.


    We're not surrounded, we're in a target-rich environment!