Question: # ! / bin / bash #Author: Name #Purpose: This script processes a data file to produce 5 output files based on specified criteria #Check
#binbash
#Author: Name
#Purpose: This script processes a data file to produce output files based on specified criteria
#Check if a file name is provided
if $# eq
echo "Usage: $
exit
fi
inputFile$
#Task : Add a header and output the data to movetxt
echo "Name Phone Number Jan Feb Mar" movetxt
cat $ movetxt
#Task : Duplicate the file, replace "John" with "Mary, and save to movetxt
sed sJohnMaryg $ movetxt
#Task : Extract donors with area code and save their names to movetxt#grep Eio :alpha::alpha $ grep E ww:digit: movetxt
#Task : Extract first names of donors whose last name starts with M or N
#grep Eio MN:alpha::alpha: $ sed s:alpha: movetxt
#Task : Find people who donated at least $ in any month, save their name and number, sorted by last name
#grep F
#if$$ $$ $ $ $$print $$ $ sort tk movetxt
Can you please fix this code with regex and grep?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
