Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started