Question: Create a shell scripts that prints the menu and executes the following: 1 . Add email 2 . Get valid emails 3 . Exit For
Create a shell scripts that prints the menu and executes the following:
Add email
Get valid emails
Exit
For take an email as input from user and append it to the file emails.txt in a new line if
file doesn't exist, create it
For parses emails.txt and looks for valid email addresses and prints them in a separate
file. Criteria for valid email address: @com
Create the file called validemails.txt and output all the valid emails in it
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
