Dump awk question
2007-12-24 21:34:00
characters ".dr" are in the string. I only want to know if all 3 are there.
if [ `/usr/bin/expr index $CHECK01 ".dr"` != "0" ]
The string is an Omniback datalist name, might be something like
"srnau200.informix.drm" or "srnau100.informix" or "srnau100.inflogs.dry" or
a bunch of other stuff.
I'm guessing I can use the awk index function to do what I want but I can't
get it to work. It just hangs there.
CHECK01=`awk '{print index($DataList, ".dr")}'`
Comments
Got something to say?
You must be logged in to post a comment.

