[Gllug] Bash: Escaping a *
Russell Howe
rhowe at wiss.co.uk
Wed Jun 30 23:39:21 UTC 2004
On Sun, Jun 27, 2004 at 10:36:52AM +0100, C. Cooke wrote:
> OPTS=( "-a" "-b" "-c" )
> /usr/bin/program "${OPTS[@]}" "$foo"
Ach, so
> String="${String//[![:alnum:]other-stuff-you-want]/}"
Ah, the ! I didn't know about. Useful indeed...
--
Russell Howe | Why be just another cog in the machine,
rhowe at wiss.co.uk | when you can be the spanner in the works?
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list