Moving files
pll at lanminds.com
pll at lanminds.com
Mon Jan 6 10:44:48 EST 2003
In a message dated: 06 Jan 2003 10:22:14 EST
"Kenneth E. Lussier" said:
>for i in `ls`
>do
>cp $i `ls $i | sed s/\ /_/g`
>done
>
>should do the trick. It didn't. It keeps complaining because it tries to
>copy each word. What am I missing?
Try:
cp $i `ls "$i" | sed s/\ /_/g'
--
Seeya,
Paul
--
Key fingerprint = 1660 FECC 5D21 D286 F853 E808 BB07 9239 53F1 28EE
It may look like I'm just sitting here doing nothing,
but I'm really actively waiting for all my problems to go away.
If you're not having fun, you're not doing it right!
More information about the gnhlug-discuss
mailing list