[Gllug] Re: spaces and shell scripting
Huw Lynes
huw-l at moving-picture.com
Fri Sep 2 09:07:33 UTC 2005
On Thu, 2005-09-01 at 15:18, Jon Dye wrote:
> Mick Farmer wrote:
> > Dear Jon,
> >
> > The GNU find command has a -print0 option to display file
> > names as NUL-terminated strings. This should help.
>
> I know, I used it in my example. Can't work out how that helps to put
> the filenames into a variable/array though, maybe I have to do something
> with IFS?
IFs=$'\n'
only splits on carriage-return not tab/space.
--
| Huw Lynes | The Moving Picture Company |
| System Administrator | 127 Wardour Street |
|.........................| London, W1F 0NL |
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list