[X-Unix] bash problem: `expr index $somestring somepattern` fails
Steffen Lund Hokland
hokland at mr.au.dk
Tue Nov 2 02:53:46 PST 2004
> I'm not familiar with this use of expr(1). It doesn't appear to be
> a built-in bash command.
Thanks, I solved it using different means: ${string##RE} etc. It's
weird though, The Adv. Bash Scripting Guided uses the method I
described extensively.....
All the best,
Steffen
"It isn't pollution that's harming the environment. It's the
impurities in our air and water that are doing it."
Fmr. vice president Dan Quale
___________________________________________
Steffen Lund Hokland, MSc.
PhD Student
The MR-Research Centre
Clinical Inst.
Aarhus University Hospital
Skejby Hospital
DK-8200 Aarhus
Denmark
Phone Office : +45 89495264
Phone Home : +45 86166608
Phone Mobile : +45 61307461
e-mail : hokland at mr.au.dk
___________________________________________
More information about the X-Unix
mailing list