[Gllug] Bash scripting question

Dylan dylan at dylan.me.uk
Thu Aug 10 19:34:33 UTC 2006


On Thursday 10 August 2006 20:23, Tom Schutzer-Weissmann wrote:
> On Thu, 2006-08-10 at 18:52 +0100, Dylan wrote:
> > which should extract the comments from the filename in $1 into the array
> > $tags. So far so good. Unfortunately I find that the input is split up at
> > spaces and line breaks, meaning that multi-word tags get distributed
> > across more than one array element.
>
> Setting the IFS (input field separator) environment variable should do
> the trick:

That's the ticket - thanks muchly

Dylan

-- 
"The man who strikes first admits that his ideas have given out."
                                                (Chinese Proverb)
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list