IT 244: Introduction to Linux/Unix
Homework 7

Due Sunday, March 25th at 11:59 PM

All this work should be done on users3.cs.umb.edu

Deliverables

  1. A shell script named hw7.sh that performs the operations listed below.
    This file should be in an hw7 directory inside your hw directory inside your it244 directory.
    100 points

Requirements

Testing

Steps for Script

  1. Copy bother10.sh from /home/tsoro/course_files/it244_files to your hw7 directory.
    Run this program in the background redirecting output to /dev/null.
    Be sure you copy and run bother10.sh, NOT bother.sh.
  2. Run a command that shows the job number of the process running bother10.sh.
  3. Run a command that shows the process ID of the process running bother10.sh.
  4. Copy the script make_foo.sh from ~tsoro/course_files/it244_files to your current directory.
    Run this script.
    Perform a long listing of all files whose name starts with the string "foo" using meta-characters.
  5. Using meta-characters, perform a long listing of all files whose name starts with the string "foo", followed by a single character, followed by .txt .
  6. Using meta-characters, perform a long listing of all files whose name starts with the string "foo", followed by a single digit, either 1, 3 or 5, followed by .txt .
  7. Using meta-characters, perform a long listing of all files whose name starts with the string "foo", followed by a single digit from 1 through 5 followed by .txt . Do this using the range feature of one of the meta-characters.
  8. Using meta-characters, perform a long listing of all files whose name starts with the string "foo" followed by a single digit, not 1, nor 3 nor 5, followed by .txt .
  9. Using meta-characters, perform a long listing of all files whose name starts with the string "foo" followed by two digits followed by .txt .
  10. Using meta-characters, perform a long listing of the files foo21.txt, foo25.txt and foo29.txt. This must be done using a single command.