On Wednesday 22 August 2001 17:20, Kirby Urner wrote:
> There's gotta be a simple bash script based on
> grep or find or something that'll get only the files
> that need renaming, and substitute underline for
> space.  I'm sure that's the kinda thing he wants
> -- some regular expression gizmo.  I could do it
> easily enough in Python...
>
> Kirby
>
> At 10:54 PM 8/22/2001 -0400, you wrote:
> >It was 23 Aug 2001 14:08:36 +1000 when Newacct wrote:
> > >but thats slow i got many files
> > >
> > >On 22 Aug 2001 10:07:43 -0400, Donnie Green wrote:
> > >> type cp "file name" file_name then rm "file name"
> > >>                     or
> > >> type mv "file name" file_name
> >
> >Then you'd better type it in quickly. The system _does_ have to plow
> > through the whole set of files. No matter if it is done through the mv
> > command (which is a program) or another program, the thing has to be
> > processed... Paul
> >
> >--
> >Doubt indulged soon becomes doubt realized.
> >-Francis R. Havergal


for i in `ls /dirname | grep -e".+ .+"`; do mv $i `echo $i | gawk '{ gsub(_, ,$0) }'` 
; done

Civileme

PS C&P that one.  The difference between back and forward quotes is huge.

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://wwww.mandrakestore.com

Reply via email to