Question: Unix Assignment 1. Explain the difference between && and ||. 2. What command can be used to take the place of several nested if statements

Unix Assignment

1. Explain the difference between && and ||.

2. What command can be used to take the place of several nested if statements in a bash shell script

3. What command ends every do loop in a whiledo statement? What command ends an untildo statement?

4. Write a script that checks the users home directory for a file named hw5file. Assuming its present, append the file with, Todays date is mm/dd/yy. If you cant locate the file hw5file, then create it and store, This is username on computer_name making my first entry.

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!