Unix OS Questions and Answers

Recent IT Questions

1 - 2 of 2
<<PREVIOUS 1 NEXT>>

Using awk to sum a field in a file

I am using the following command to sum the 3rd column in a ~ delimited file. awk -F~ '{total+=$3} END{print total}' /tmp/foo Can I add conditions to this command e.g. sum column 3 if column 5 greater than 160 and less than 171 etc? Thanks

View Answer   |  Jul 22 2009  7:45 PM GMT
Unix, Unix OS, Unix administration
asked by Gchahl

  25 pts.

compare and contrast

compare and contrast Unix OS with Windows OS

View Answer   |  Dec 13 2007  4:55 AM GMT
Windows Operating System, Unix OS
asked by Jizzle42

  5 pts.

1 - 2 of 2
<<PREVIOUS 1 NEXT>>