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:
1. Add email
2. Get valid emails
3. Exit
For 1, 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 2, 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 valid_emails.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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!