Can anyone show me a simpler way:
David Mason
mason at oct1.UUCP
Fri Oct 19 02:32:00 AEST 1990
In article <40852 at eerie.acsu.Buffalo.EDU> cloos at acsu.buffalo.edu (James H. Cloos)
writes:
>If anyone can show me a simpler way to do this (the simplest?) I'd be
>very appreciative:
>
>uncompress `du -a . | egrep .Z | awk '{print $2}' -`
How about
find . -name \*.Z -print | xargs uncompress
Saves du'ing all the files, prevents the possibility of having an argument
string that is too long, and is probably more readable.
--------------------
David | mason at oct1.UUCP (David Mason)
| olsa99!oct1!mason at ddsw1.mcs.com
~~~~~~~ Has your C2 locked you out today? ~~~~~~~
More information about the Comp.unix.questions
mailing list