Subject: Re: changing a group of file name extensions
To: None <seebs@plethora.net>
From: None <mcmahill@mtl.mit.edu>
List: netbsd-help
Date: 05/20/1999 22:52:17
What shell were those commands done under?  

Thanks

-Dan


On Thu, 20 May 1999 seebs@plethora.net wrote:

> In message <Pine.NEB.4.05.9905211131050.1625-100000@fredfl2>, Guy Santiglia wri
> tes:
> >What would you do?  What WOULD you do?
> 
> for i in *.cpp
> do
> 	mv $i ${i%.cpp}.c
> done
> 
> For extra credit
> 
> 	ls *.cpp | while read i
> 	do
> 		j=`echo $i | tr A-Z a-z`
> 		mv $i ${j%.cpp}.c
> 	done
> 
> >  Or what list might you ask a question like this?
> 
> comp.unix.shells or comp.unix.questions.
> 
> -s
>