Thats good---

. Thank you Sweta.
One more thing....
Lets say....
we have something within a "for" script loop.. like:
Code:
for i in $(cat file.txt | awk ' { print $1 }'| grep -vE "( xyz|abc|^-)")
do command 1
command 2
command 3
done
and if any of the commands within (cat file.txt | awk ' { print $1 }'| grep -vE "( xyz|abc|^-)") fails, can we get an exit status of that.
can we....?. I guess when we run something within () , it spawns another sub-shell for that.
Thanks everyone...monk,rocky,vivek,sweta...everyone, for all of your unstinted support and replies.
Cheers,
rc