On 2001.07.18 15:42 Colin McKinnon wrote:
> This is a little vague.....but am'nt I always?
>
> Linux, and unices in general have lots of lovely tools for playing with
> files. Unfortunately most of them fall apart when faced with a
> filename/path which has spaces in it. Has anybody out there addressed this
> problem? Any ideas? tools? code?
>
Hi Colin,
ok, I'm kind of guessing what you are doing so I may be wildly off target.
But..., if you are trying to do what I think, the following might help.
As usual, I'll just give code. I'm not so good at explaining in english. :-(
Thu Jul 19: todd@mahler: ~
> cat TEST.sh
for a in $@;do echo $a;done
Thu Jul 19: todd@mahler: ~
> TEST.sh 1 "2 3 4" "5 6"
1
2
3
4
5
6
Thu Jul 19: todd@mahler: ~
> #edit TEST.sh
> cat TEST.sh
IFS=
for a in $@;do echo $a;done
Thu Jul 19: todd@mahler: ~
> TEST.sh 1 "2 3 4" "5 6"
1
2 3 4
5 6
HTH
Lawrence
--------------------------------------------------------------------
http://www.lug.org.uk http://www.linuxportal.co.uk
http://www.linuxjob.co.uk http://www.linuxshop.co.uk
--------------------------------------------------------------------