I have a file that is a .csv Excel file which I download and ftp over to my unix OSS system every Friday at 4:45 pm. When I cat it in unix it reads the file and the output is below:
B00227C,7.0,5.6,65.9,5,30,97.9,78.2,98
B00229C,7.0,5.8,79.9,5,30,97.9,78.2,98
B00237C,6.5,5.6,79.9,5,30,97.9,78.2,98
I need it to compare fields $2 and $3 (if 2 and 3 are not equal then only print fields $1 through $5 to another file)
I want the output to look like:
It reflects the first and 2nd line above^. The output needs to be set so that the line where the % Avail is the lowest is at the top and so on.
Cell Id Avg Def Avg Avail %Avail Total Incoming
B00227C 7.0 5.6 65.9 5
B00229C 7.0 5.8 79.9 5
And so on for the lines that match the pattern. Thanks again for any help you can give!
Beaster
B00227C,7.0,5.6,65.9,5,30,97.9,78.2,98
B00229C,7.0,5.8,79.9,5,30,97.9,78.2,98
B00237C,6.5,5.6,79.9,5,30,97.9,78.2,98
I need it to compare fields $2 and $3 (if 2 and 3 are not equal then only print fields $1 through $5 to another file)
I want the output to look like:
It reflects the first and 2nd line above^. The output needs to be set so that the line where the % Avail is the lowest is at the top and so on.
Cell Id Avg Def Avg Avail %Avail Total Incoming
B00227C 7.0 5.6 65.9 5
B00229C 7.0 5.8 79.9 5
And so on for the lines that match the pattern. Thanks again for any help you can give!
Beaster