Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!ncar!gatech!mcnc!duke!drh From: drh@duke.cs.duke.edu (D. Richard Hipp) Newsgroups: comp.arch Subject: Re: shell architecture (to glob or not to glob) Message-ID: <669304840@juliet.cs.duke.edu> Date: 18 Mar 91 14:00:42 GMT References: <488@bria> <00086@meph.UUCP> <1407@sheol.UUCP> Organization: Duke University Computer Science Dept.; Durham, N.C. Lines: 12 In article <1407@sheol.UUCP> throopw@sheol.UUCP (Wayne Throop) writes: >...[R]enaming groups of files is a common >enough task that *some* tool (whather mv or not) ought to be around to >handle it. Try this from the Bourne shell (or equivalent): ls *.x | sed -e 's/\.x//' | while read name; do mv $name.x $name.y; done; A similar idiom will handle most problems that Mr. Throop describes. Why is this in comp.arch?