5

awk for total

view full story
linux-howto

http://www.unix.com – Have a input file like this ..... Code: attachments          100G shared                  1T archive                300M documents            300G remotedocs            150M I need the total in GB's ... where as M=MB,G=GB,T=TB Basically need awk to calculate the total based on end suffix Thanks ! (HowTos)