Question: Need help with Linux problem 5.Find the people who donated at least $10.00 in any month in the file move5.txt. For this, I just want
Need help with Linux problem
5.Find the people who donated at least $10.00 in any month in the file move5.txt. For this, I just want their full name and phone number, but nothing else. This data should be sorted by their last name.
The code I have:
grep '$[1-9][0-9]\.' $1 | sed 's/\([A-Za-z]*\)\([ A-Za-z]*\)\([0-9]$*[^%$]*\)\(.*\)/\2 \1\3/' > move5.txt
the format of file being manipulated:
Jane Smith%(314)422-1234%$10.00%$50.00%$15.00
John Doe%(926)516-1234%$5.00%$75.00%$25.25
The output I'm getting to move5.txt is:
Jane Smith%( 314)422-1234
John Doe%( 926)516-1234
I need it to just output the first and last name with phone number using the above commands. Need to remove the % and the weird whitespace after (
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
