Re: [Veritas-bu] Script Help - BPIMMEDIA Output
2007-06-19 19:58:44
> You could use 'tr' to strip all non-numerics.
>
> echo $MEDIAID | tr -d -c '0-9'
Oops. Not good enough. Numerics may obviously be present in the
hostname portion as well.
echo $MEDIAID | sed 's/^.*_//'
--
Darren Dunham ddunham AT taos DOT com
Senior Technical Consultant TAOS http://www.taos.com/
Got some Dr Pepper? San Francisco, CA bay area
< This line left intentionally blank to confuse you. >
_______________________________________________
Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
|
|
|