[clug] Spaces in filenames?
Paul Warren
u3292467 at anu.edu.au
Tue Aug 19 22:13:16 EST 2003
I've got a whole bunch of .wav files with spaces in them. Now it seems
that linux command line tools don' like spaces. My usual script to
encode as ogg's doesn't work:
for I in *.wav
do
oggenc -q6 $I
done
neither does
for I in `ls -1`
do
oggenc -q6 $I
done
If i do a
for I in `ls -1`
do
echo $I
done
I get something like the following
01
pure
morning.wav
02
brick
shithouse.wav
03
you
don_t
care
about
us.wav
04
I also tried
find . -name *.wav | xargs oggenc -q 6
Same problem.
My question is, How do I turn the spaces to underscores, or
alternatively, make a script that can work with spaces in filenames!
Cheers
--
Paul Warren
u3292467 at anu dot edu dot au
www.geocities.com/qvack_82/
More information about the linux
mailing list