On Thu, 15 Jul 2004 23:54:53 +0200 Michael Schmidt wrote:
Hej NG
Prøvede af omdøbe nogle CD-images som følger:
[zmit@a31p input]$ ls -1
Ferie-film.SVCD-VideoCD.CD1.bin*
Ferie-film.SVCD-VideoCD.CD1.cue*
Ferie-film.SVCD-VideoCD.CD2.bin*
Ferie-film.SVCD-VideoCD.CD2.cue*
[zmit@a31p input]$ rename *.bin *.iso *.bin
hvilket expander til:
rename Ferie-film.SVCD-VideoCD.CD1.bin Ferie-film.SVCD-VideoCD.CD2.bin
Ferie-film.SVCD-VideoCD.CD1.bin Ferie-film.SVCD-VideoCD.CD2.bin
dvs. Strengen Ferie-film.SVCD-VideoCD.CD1.bin bliver til
Ferie-film.SVCD-VideoCD.CD2.bin i Ferie-film.SVCD-VideoCD.CD1.bin og
Ferie-film.SVCD-VideoCD.CD2.bin
dvs. det er det samme som at skrive:
mv Ferie-film.SVCD-VideoCD.CD1.bin Ferie-film.SVCD-VideoCD.CD2.bin
mv Ferie-film.SVCD-VideoCD.CD2.bin Ferie-film.SVCD-VideoCD.CD2.bin
[zmit@a31p input]$ ls -1
Ferie-film.SVCD-VideoCD.CD1.cue*
Ferie-film.SVCD-VideoCD.CD2.bin*
Ferie-film.SVCD-VideoCD.CD2.cue*
[zmit@a31p input]$
Hvor blev Ferie-film.SVCD-VideoCD.CD1.bin* af?
Den hedder nu Ferie-film.SVCD-VideoCD.CD2.bin
-og hvad gjorde jeg galt?
Det du ville var nok:
rename .bin .iso *.bin