Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!boulder!stan!dce From: dce@Solbourne.COM (David Elliott) Newsgroups: comp.unix.wizards Subject: Re: Look! An xargs!! (Re: recursive grep) Message-ID: <2241@marvin.Solbourne.COM> Date: 3 Sep 89 23:57:58 GMT References: <666@lakart.UUCP> <1641@cbnewsl.ATT.COM> <7774@cbmvax.UUCP> <3478@yunexus.UUCP> <1459@jolnet.ORPK.IL.US> <4026@buengc.BU.EDU> Reply-To: dce@Solbourne.com (David Elliott) Organization: Solbourne Computer Inc., Longmont, Colorado Lines: 21 In article <4026@buengc.BU.EDU> bph@buengc.bu.edu (Blair P. Houghton) writes: >Okay, kids. Shell script 101 is now in session. > >Try this, after putting it in a file and turning on the execute flag. > > while read arrrrg > do > $* $arrrrg > done What if one of the members of $* or $arrrrg contains spaces? If you're going to be pedantic, at least be correct ;-) eval ${1+"$@"} "$arrrrg" -- David Elliott dce@Solbourne.COM ...!{uunet,boulder,nbires,sun}!stan!dce "We don't do this because we love you or like you...we don't even know you!"