From my home directory | Computer Science homework help

  

QUESTION 1 From my home directory, copy the file called cards to your home directory. Copy the following script to a file in your home directory. This will be your first shell script. You can name the file any name that you would like. Once the file exists, execute the script. #!/usr/bin/ksh grep -i ‘Mantle’ cards if [ $? ] then echo “The name Mantle was found” fi The above script will locate the string “Mantle” within the file called cards and output the lines and a success statement. True False 10 points 

QUESTION 2 Copy the following script to a file in your home directory. You can name the file any name that you would like. #!/usr/bin/ksh if [ -f /etc/passwd ] then echo “The file exists” else echo “The file does not exist” fi Execute the file (script) The script will locate the /etc/passwd file and tell you that it exists True False 10 points 

QUESTION 3 Copy the file called list from my home directory. Copy the following script to a file in your home directory. You can name the file any name you would like. #!/usr/bin/ksh for index in `cat list` do echo $index done Execute the file (script). The script will output each line contained in the file called list. True False 10 points Click Save and Submit to save and submit. Click Save All Answers to save all answers.

Calculate your order
Pages (275 words)
Standard price: $0.00
Client Reviews
4.9
Sitejabber
4.6
Trustpilot
4.8
Our Guarantees
100% Confidentiality
Information about customers is confidential and never disclosed to third parties.
Original Writing
We complete all papers from scratch. You can get a plagiarism report.
Timely Delivery
No missed deadlines – 97% of assignments are completed in time.
Money Back
If you're confident that a writer didn't follow your order details, ask for a refund.

Calculate the price of your order

You will get a personal manager and a discount.
We'll send you the first draft for approval by at
Total price:
$0.00
Power up Your Academic Success with the
Team of Professionals. We’ve Got Your Back.
Power up Your Study Success with Experts We’ve Got Your Back.
×

Contact Us on WhatsApp

× How can I help you?