Homework: Bash

  < Previous  Next >

Write a Bash script that does the following:
  1. Displays "Hello!"
  2. Stores your name in a variable
  3. Displays your name using a variable
  4. Stores your research area in a variable
  5. Tests if your research area is the same as Dr. Carroll's (Bioinformatics). If they're the same, then, displays "Dr. Carroll's research area is cool". Otherwise, displays "Let me tell you about " (and then the name of the research area, again using a variable).
  6. Uses a loop (that was not covered in lecture) to display information to the screen
  7. echos the name of your favorite color and stores the stdout in a file named colors.txt
  8. echos the name of your second favorite color and adds it to the end of the file named colors.txt
  9. echos the name of the last color that you learned and adds it to the end of the file name colors.txt
  10. Sorts the contents of colors.txt and stores the result in colors-sorted.txt
You are welcome to help each other on this assignment.

Last Modified: