But when scripted in a loop, no matter what I do, the grep always returns a RC:1.
I've tried every combination of quotes, single, double, escaping the quotes, enclosing single quotes
inside of double quotes. Not matter what I do I get RC:1

This should be something simple, but it's got me stumped.
I've also tried egrep and fgrep. Same results

RE: grep issue in ksh script

@tmd1332 .. recently one very simple one stumped me wasting hours.
Probably not related to your problem, but you never know lol .. jump down to '20 Nov 13 15:47' on this one that tripped me up (once again) http://www.tek-tips.com/viewthread.cfm?qid=1721210

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.The Tek-Tips staff will check this out and take appropriate action.