Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

6. Examine the following shell script and describe its function line-by-line: #!/bin/bash echo -e This program copies a file to the /stuff directory.

imageimage

6. Examine the following shell script and describe its function line-by-line: #!/bin/bash echo -e "This program copies a file to the /stuff directory. " echo -e "Which file would you like to copy? --> \c" read FILENAME mkdir /stuff || echo "The /stuff directory could not be created." cp -f $FILENAME /stuff && echo "$FILENAME was successfully copied to /stuff" 2. Create a shell script that takes two IP address as its command-line arguments. Your script should ping each IP once. 3. Create a shell script that takes a username and a domain name as command-line arguments and outputs an email address constructed from those values. (For example, running ./make-email.sh dornm fvtc.edu would output "dornm@fvtc.edu".)

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

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Computer Network questions

Question

=+a) How long do you expect to wait for your turn to get tickets?

Answered: 1 week ago