Newsgroups: comp.unix.shell
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!lavaca.uh.edu!menudo.uh.edu!sugar!ficc!peter
From: peter@ficc.ferranti.com (Peter da Silva)
Subject: Duelling shells (Re: shell architecture (to glob or not to glob))
Message-ID: <+13AGZ8@xds13.ferranti.com>
Reply-To: peter@ficc.ferranti.com (Peter da Silva)
Organization: Xenix Support, FICC
References: <488@bria> <00086@meph.UUCP> <1407@sheol.UUCP> <669304840@juliet.cs.duke.edu>
Date: Mon, 18 Mar 91 21:45:29 GMT

In article <669304840@juliet.cs.duke.edu> drh@duke.cs.duke.edu (D. Richard Hipp) writes:
> In article <1407@sheol.UUCP> throopw@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@ferranti.com
+1 713 274 5180.  'U`  "Have you hugged your wolf today?"
