UNIX Scripting

I am new to Unix and currently taking it for a college course. Unfortunately, I'm not understanding how to start a script. I am attaching my lab assignment. I know how to make the directories. Its just the scripting that is confusing me. If you could write or give me an idea how the script should look, I would be very grateful. Here are the directions:
Purpose: The purpose of this assignment is to write a shell
script with the name lab3.scr that will run various UNIX
commands and will redirect the output of the commands to
the file lab3.out and lab3.out1.

  • Steps 1-09 listed below must be part of the lab3.scr script.
  • Any output for steps 1-6 should be redirected to lab3.out.
  • Any output for steps 7-09 should be redirected to lab3.out1.
  • All files must be contained within your lab3 directory.
  • Your script must contain comments with your name, course
    number and your user id.
  1. Create the directory lab3 and lab3/temp in your home directory.

  2. Copy the lab3.readme.online file from /home/david to your lab3 directory.

  3. List all files in the /home/david/lab3 directory that begin with names.

  4. Copy all files in the /home/david/lab3 directory that have the file
    extension .save to your lab3/temp directory. Display the list of files
    copied to your lab3/temp directory [Bonus +10]

  5. Sort the file /home/david/lab3/names in reverse order.

  6. Display the active processes on the process status
    list with only your user id number (UID) or your user
    name (user1XX).

  7. Display the first 15 lines of the file /home/david/lab3/passwd.
    Display the last 7 lines of the file /home/david/lab3/passwd.

  8. Display a sorted list of users logged into the system.
    Sort the output by IP address.

  9. Display a recursive long list of all files in your lab3 directory.

  10. All files should be in your lab3 directory for grading.
    lab3.readme.online, lab3.out, lab3.out1, lab3.scr.

Note: The lab3.scr script does not have to be moved to the lab3 directory
as part of the lab3.scr script. Just move the script file into your lab3
directory after your assignment is comp

Moderator comments were removed during original forum migration.