Please read the directions for each exercise carefully. For this homework, you are not modifying this file. You are, however, producing two new files.
Write a bash script that converts a temperature from degrees Fahrenheit to degrees Celcius.
One way is to use bc; see TLCL for more. The script should be called temperature.sh.
To use the script, one should be able to type
laptop@robertsj$ bash temperature.sh 32and get output similar to
32 F = 0 CWrite a bash script that provides a count of the number of (1) files and (2) subdirectories in the current directory. The script should be named count_files_and_subdirs.sh. (Tools like wc and grep might be very helpful.) You may choose to exclude the hidden files and directories.
Recall our team assignments defined here. Do the following:
- Fork and clone your partner's (the person after you) repository (you will need to be given access).
- Add your partner's repository as a remote.
- Fetch and checkout your partner's
masterbranch and use it to create a new branch nameddevin your own, local repository. - Modify your partner's
temperature.shscript to output the temperature in Kelvin, too. - Commit any changes and
pushto your GitHub repository as a new remote branch nameddev. - Make a pull request from your remote
devbranch into your partner'smasterbranch - Communicate as needed so that the pull request is reviewed and accepted.
- Communicate as needed with the person before you in the list who will be making a PR into your repository.
For full credit, each of the steps described above must be clearly visible from the commit log!