Quote:
Originally Posted by phemanth24
BTW, you could also bypass putting this into a script.
Code:
awk '/(^A)|(^B)/ {num++} END {if(num > 0);printf("%d instances of A,B exist\n", num);}' column
'column' is the file where I have the format you specified.
|
Ok the above only tell me how many times A or B where in there. I require it to send an error message if a C exist or otherwise its fine to continue processing file.. hope that makes more sense