Dateien umbennen

Jan-Benedict Glaw jbglaw at lug-owl.de
Wed May 8 10:18:02 CEST 2002


On Wed, 2002-05-08 10:08:52 +0200, Stefan Pump <lug at pumpnet.de>
wrote in message <001501c1f667$97d9eaf0$0700a8c0 at joelle272>:
> Hallo LUGler,
> 
> ich möchte gerne Dateien umbenennen, und zwar sollen aus
> 
> ist:
> bestellung.php3?wid=330
> bestellung.php3?wid=86   
> 
> soll:
> seite330.html
> seite86.html

for i in bestellung.php3\?wid\=*; do
	NUMBER="`echo "$i" | cut -f 2 -d =`"
	mv "$i" "seite${NUMBER}.html"
done

MfG, JBG

-- 
Jan-Benedict Glaw   .   jbglaw at lug-owl.de   .   +49-172-7608481
	 -- New APT-Proxy written in shell script --
	   http://lug-owl.de/~jbglaw/software/ap2/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 240 bytes
Desc: not available
URL: <http://lug-owl.de/pipermail/linux/attachments/20020508/068fafe5/attachment.sig>


More information about the Linux mailing list