Help with bash command to change lots of file names

Natalie S. Ford natalie at ourshack.com
Fri May 10 09:06:45 BST 2002


On Thu, May 09, 2002 at 11:11:02PM +0100, Natalie S. Ford wrote:
> On Thu, May 09, 2002 at 10:21:39PM +0100, Roger McCalman wrote:
> > If using ksh then
> > 
> > for f in * ; do n=${f#CHAP}; n=${n%txt} ; echo mv $f ch${n}tex; done
> 
> pity you can't do
> 
> ren CHAP*.txt ch*.tex
> 
> like you can in dos...
> 
> </heresy>

damn.  i hit reply like i do for all of the other mailing lists i am on
and forgot that this list only replies to the sender and forgot to re-add
the lists email address to the cc field before sending...  ;-(

-- 
Natalie S. Ford           ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø      natalie at ourshack.com




More information about the Ukfreebsd mailing list