September 19th, 2003, 10:53 AM
script to getline and if condition
I am new with shell script programming could some one please help.
How can I get the hostname with his infoline-1 to infoline-n if the total error for the hostname is >0 and then the next hostname-n and infoline-n (Skip the xxxx data and read and print the hostname No of errors and his information
Data file is:
Total Error for hostname1 =1
Total Error for hostname2 =0
Total Error for hostname3 =4