Re: Mehrere Dateien umbenennen...

From: universe <universe(at)truemetal.org>
Date: Fri, 09 Nov 2001 02:13:41 +0100

moin philon,

Philon wrote:
> Ich möchte ein paar Zeichen aus den Namen mehrerer Dateien löschen
> beispiel:
> Nice-File.txt" soll werden: "File.txt"

z.b.:

move-it.sh:

#!/bin/bash

for i in *File.txt
  do MOVEFILE=`echo $i | cut -d "-" -f 2` ; mv $i $MOVEFILE
done

ps: mac sucks. :)

gruss,
markus

-- 
there's the microsoft way, there's the linux way, and there's
the right way.
-- freebsd, the winner's choice. http://www.freebsd.org
To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Fri 09 Nov 2001 - 02:13:47 CET

search this site