Dana Vrajitoru
C151 Multi-User Operating Systems

C151 Homework 7

Due Date: Monday, March 15, 2021.

Ex. 1 A bash Script

In the folder week7 inside your c151 folder, create a file called hw7.sh with emacs or the editor that you prefer. On the first line, specify explicitly that the shell executing this script should be /bin/bash. We will make the assumption that the script will be run with one positional parameter or argument, identified by $1. Add the commands to the script to perform the following operations:

Make the file executable, then run the script with the command
hw7.sh path
where path is a valid path, such as c151/week4/.

Copy the commands changing the permission, the execution of the script and the result of it from the terminal into the log file hw7.txt.

Upload to Canvas: The script hw7.sh and the text file hw7.txt.