Part 1:
Write a menu based shell script to do the following:
• accept a string and a file name from the user as command line arguments.
• displays the following menu
a: search
b: insert the string at the beginning of the file
c: insert the string at the end of the file
d: insert at beginning of 5th line
e: exit
Script should also print an error message in case user gives less or more number of arguments. For option “d” if the number line is less than 5, error should be displayed.
singhabhi1999/SP-Assignment
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|