Re: Spaces in file names
- From: Paul Pluzhnikov <ppluzhnikov-nsp@xxxxxxxxx>
- Date: Sun, 30 Dec 2007 17:54:50 -0800
"Leslie Rhorer" <lrhorer@xxxxxxxxxxx> writes:
OK, here's the problem. I need to automatically manipulate the file names
of a number of files whose filenames have spaces in them.
Here is an example:
$ touch "a b" "c d" "e f g"
$ ls -1
a b
c d
e f g
$ find . -type f | while read line; do mv "$line" "$line.bak"; done
$ ls -1
a b.bak
c d.bak
e f g.bak
Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
.
- Follow-Ups:
- Re: Spaces in file names
- From: Leslie Rhorer
- Re: Spaces in file names
- References:
- Spaces in file names
- From: Leslie Rhorer
- Spaces in file names
- Prev by Date: Spaces in file names
- Next by Date: Re: Spaces in file names
- Previous by thread: Spaces in file names
- Next by thread: Re: Spaces in file names
- Index(es):