Sorry for this OT but I am trying for some hours to achieve a massive
rename of files using a simple script and I have not success yet. I want
to rename files like
RESULTS OF JAN 01 2002.txt
to
RESULTS_OF_JAN_01_2002.txt
i.e. all the spaces, being substituted by '_', and the
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Fri, 10 Jan 2003, Rob wrote:
Sorry for this OT but I am trying for some hours to achieve a massive
rename of files using a simple script and I have not success yet. I want
to rename files like
RESULTS OF JAN 01 2002.txt
to
On Fri, Jan 10, 2003 at 01:49:18AM +1030, Rob wrote:
If you want to do it for all files in a directory:
# for file in *; do mv $file `echo $file | sed -e 's/ /_/g'`; done
should do the trick. I think Perl is overkill for something this simple.
Someone else suggested tr, which probably
Conider the file freebsd help.doc
mv freebsd\ help.doc freebsdhelp.doc
- Original Message -
From: Gary W. Swearingen [EMAIL PROTECTED]
To: BigBrother (BigB3) [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, January 08, 2003 10:05 PM
Subject: Re: Renaming files with spaces
in message [EMAIL PROTECTED],
wrote Stijn Hoop thusly...
On Fri, Jan 10, 2003 at 01:49:18AM +1030, Rob wrote:
If you want to do it for all files in a directory:
# for file in *; do mv $file `echo $file | sed -e 's/ /_/g'`; done
^ ^
in message [EMAIL PROTECTED], wrote
BigBrother (BigB3) thusly...
Sorry for this OT but I am trying for some hours to achieve
a massive rename of files using a simple script and I have not
success yet. I want to rename files like
RESULTS OF JAN 01 2002.txt
to
On Wed, Jan 08, 2003 at 06:01:50PM +0200, BigBrother (BigB3) said:
-BEGIN PGP SIGNED MESSAGE-
Sorry for this OT but I am trying for some hours to achieve a massive
rename of files using a simple script and I have not success yet. I want
to rename files like
there is already a general