You need to put quotes around your variables. This is from the "advanced
bash scripting" document that was posted to freshmeat.net a while ago, you
might find that a good download.
20 echo hello # Not a variable reference, just the string "hello".
21
22 echo $hello
23 echo ${hello} #Identical to above.
24
25 echo "$hello"
26 echo "${hello}"
27
28 # hello="A B C D"
29 # Now, echo $hello and echo "$hello" give different results.
30 # Quoting variable preserves whitespace.
31
32 echo '$hello'
33 # Variable referencing disabled by single quotes,
34 #+ which causes the "$" to be interpreted literally.
35
36 # Notice the effect of different types of quoting.
> Anyone know how to get around this without renaming all the files (some 350).
That should be easy for a little script.
BB
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug