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
^
, 2003 10:05 PM
Subject: Re: Renaming files with spaces in the name to files without
spaces..
> Paste this into your shell:
>
> XXX="RESULTS OF JAN 01 2002.txt "
> YYY=${XXX%% }
> ZZZ=$(echo ${YYY} | tr ' ' '_')
>
> for III in "$XXX&q
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, wh
-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
> > 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 su
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 gene
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
>
> "RESULTS_OF_
On Wed, 8 Jan 2003, BigBrother (BigB3) 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
>
> "RESULTS_OF_JAN_01_2002.txt"
>
> i.e.
Paste this into your shell:
XXX="RESULTS OF JAN 01 2002.txt "
YYY=${XXX%% }
ZZZ=$(echo ${YYY} | tr ' ' '_')
for III in "$XXX" "$YYY" "$ZZZ"; do
echo "'$III'"
done
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message
> -Original Message-
> From: BigBrother (BigB3) [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 08, 2003 18:02
> To: [EMAIL PROTECTED]
> Subject: Renaming files with spaces in the name to files
> without spaces..
>
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
>
> Sorry f
10 matches
Mail list logo