Re: Spaces in file names



"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.
.