Create a shell script that accepts parameters and uses grep tosearch for patterns: The script will accept
Fantastic news! We've Found the answer you've been seeking!
Question:
Create a shell script that accepts parameters and uses grep tosearch for patterns:
The script will accept three parameters representing, in order,a file extension, a year and a new filename. and it uses grep to search dirfile.txt for all lines that end withthe file extension represented by the first parameter, and writethe results to the filename represented by the third parameter alsouse grep to search dirfile.txt for all lines that include the yearrepresented by the second parameter, and write the results to thefilename represented by the third parameter.
Please make script in Linux, make template please
Related Book For
Posted Date: