Duelling shells (Re: shell architecture (to glob or not to glob))

Peter da Silva peter at ficc.ferranti.com
Tue Mar 19 07:45:29 AEST 1991


In article <669304840 at juliet.cs.duke.edu> drh at duke.cs.duke.edu (D. Richard Hipp) writes:
> In article <1407 at sheol.UUCP> throopw at sheol.UUCP (Wayne Throop) writes:
> >...[R]enaming groups of files is a common
> >enough task

Is it? When was the last time you did this, other than moving files from
one directory to another?

> >that *some* tool (whather mv or not) ought to be around to
> >handle it.

> ls *.x | sed -e 's/\.x//' | while read name; do mv $name.x $name.y; done;

ls *.x | sed 's/\(.*\).x/mv & \1.y/' | sh

> Why is this in comp.arch?

Why, indeed?
-- 
Peter da Silva.  `-_-'  peter at ferranti.com
+1 713 274 5180.  'U`  "Have you hugged your wolf today?"



More information about the Comp.unix.shell mailing list