Need Linux/UNIX help using the awk command:
Consider the address book below:
$ cat addr
Xiao Li, lxiao@unc, 6705462234, Jackson, NC 764
Natkin William, [email protected], 8044344528, Richmond, VA 22345 Elizi Moe, [email protected], 5208534566, Tempe, AZ 85282
Ma Ta, mta@yahoo, 4345667345, Austin, TX 91030
Diana Cheng, dcheng@asu, 5203456789, Matitsi, WY 4587
Jackson Five, jfive@ncsu, 5206564573, Kyenta, AZ 85483
Adi SrikanthReddy, [email protected], 6578904566, Wyo, WS 67854
Part 1: Using awk, Print only the lines with imap#.
Part 2: Using awk, Print the names, phone number, state and zip