Answered step by step
Verified Expert Solution
Link Copied!

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:
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Explain how cultural differences affect business communication.

Answered: 1 week ago

Question

List and explain the goals of business communication.

Answered: 1 week ago