Hello Sluggers!
I am often moving or coping files with spaces in them. What I would really
like is be able to get just go
| xargs mv %1 /newdir
or something similar. At the moment I am stuck writing scripts like this
#!/bin/bash
IFS='
'
for f in `/bin/ls | grep -i $1`
do
mv -v "$f" $2
done
What I would like is a general solution where I can say execute this command
on every line in this file. Should I extend this script so it takes in the
"mv -v" script on command line and works off standard input or is there an
easier/better way? Surely this is a simple problem but I can't see the
simple solution. :-(
Joel
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug