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.
-
Notifications
You must be signed in to change notification settings - Fork 1
singhabhi1999/SP-Assignment
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published