Path: utzoo!attcan!uunet!know!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!dali.cs.montana.edu!ogicse!zephyr.ens.tek.com!tektronix!nosun!qiclab!m2xenix!quagga!ucthpx!oct1!mason From: mason@oct1.UUCP (David Mason) Newsgroups: comp.unix.questions Subject: Re: Can anyone show me a simpler way: Message-ID: <1990Oct18.163200.2151@oct1.UUCP> Date: 18 Oct 90 16:32:00 GMT References: <40852@eerie.acsu.Buffalo.EDU> Reply-To: mason@oct1.UUCP (David Mason) Organization: Open Computer Technology Lines: 20 In article <40852@eerie.acsu.Buffalo.EDU> cloos@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@oct1.UUCP (David Mason) | olsa99!oct1!mason@ddsw1.mcs.com ~~~~~~~ Has your C2 locked you out today? ~~~~~~~