Need help with shell scripting and using the sed command in Linux/Unix
Consider the address book below:
$ cat addr
Xiao Li, [email protected], 6705462234, Jackson, NC 764
Elizi Moe, [email protected], 5208534566, Tempe, AZ 85282
Ma Ta, [email protected], 4345667345, Austin, TX 91030
Diana Cheng, [email protected], 5203456789, Matitsi, WY 4587
Jackson Five, [email protected], 5206564573, Kyenta, AZ 85483
Adi Srikanth Reddy, [email protected], 6578904566, Wyo, WS 67854
Natkin William, [email protected], 8044344528, Richmond, VA 22345
Provide the sed command to:
Substitute the 3rd occurrence of "asu" in email address with "vcu".
Remove all imap and imap number from the email addresses
Add the string "School Email" next to all email addresses ending with ".edu"
Move the email addresses to the end of the lines