Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!think.com!linus!agate!violet.berkeley.edu!pete From: pete@violet.berkeley.edu (Pete Goodeve) Newsgroups: comp.sys.amiga.tech Subject: Re: PIPEs Message-ID: <1990Nov17.093551.8039@agate.berkeley.edu> Date: 17 Nov 90 09:35:51 GMT References: <1990Nov7.235254.13959@opusc.csd.scarolina.edu> <7025@sugar.hackercorp.com> <8292@gollum.twg.com> Sender: usenet@agate.berkeley.edu (USENET Administrator) Distribution: na Organization: University of California, Berkeley Lines: 17 In <8292@gollum.twg.com> (16 Nov), David S. Herron (david@twg.com) writes: > > Now changing the `extension' like your example above is harder: > > for f in *.[ch]; do > mv $f `echo $f | sed 's/^\([^\.]*\)\.c$/\1.h/'` > done > > It may look ugly but at least it's succint ;-)... > Heh heh! ...And this is the guy who was complaining about the PIPE command tentative syntax! (:-)) -- Pete --