CSCI 211: Unix Lab
Homework 3
(Due February 22, 2016,  23:59:59PM)

Note: 
1.	You must rely on UNIX commands only to solve the problems. No manipulation on Windows is allowed (such as scrolling the PuTTY screen). 
2.	You must use a single command for each of the following operations unless specified otherwise.
Pre-step:
Run the command "source /lab3/quiz/prep.sh" exactly once.
1.	Find out the latest date and time that the user "sycs211" logged in and the hostname that the user "sycs211" logged in from.
Show the command(s) your used to achieve the goal:
Show the date, time and hostname:

2.	Using one single command, find the program named 'hi' in the current directory tree (i.e. the current directory and its subdirectories and sub-subdirectories and so on).
Show the command your used to achieve the goal:
Show the path of 'hi':

3.	Show the environment variable PATH.
Show the command(s) your used to achieve the goal:

4.	Do some manipulations so that you can run the 'hi' program from anywhere without providing the path of 'hi'.
Show the command(s) your used to achieve the goal:
Show the report code provided by 'hi' after the successful manipulations:

5.	Using one single command with wildcard characters, copy all files that have ‘b’ as the second character and have ‘c’ as the second last (penultimate) character to the ‘tmp’ directory.
Show the command your used to achieve the goal:

6.	List content of the ‘tmp’ directory.
Show the command(s) your used to achieve the goal:
Show the content of the 'tmp' directory:

7.	In the directory tree of "~/lab3", using one single command, find the files with "sycs" in their names. 
Show the commands your used to achieve the goal:
Show the names and paths (relative to ~/lab3) of the files found:

8.	Without using an editor, find the lines in the file named "file.with.abcd" that contains the string "abcd". You need to do that in two different ways, using pipe and not using pipe.
Show the command (not using pipe) your used to achieve the goal:
Show the command (using pipe) your used to achieve the goal:
Show the found lines AND the line number of the lines:

9.	In the directory tree of "~/lab3", using one single command, find the files with the string "lost money" (case insensitive) in their content. 
Show the command your used to achieve the goal:
Show the names and paths (relative to ~/lab3) of the files found:

10.	In the directory tree of "~/lab3", using one single command, find the files with a particular string in their content. The string starts with '@', followed by a capital letter, and then zero or more digits, and then one or more small letters, and ends with '@'.
Show the command your used to achieve the goal:
Show the names and paths (relative to ~/lab3) of the files found:

Post-steps:
1.	Run the command "source /lab3/quiz/wrapup.sh" exactly once. 
2.	Submit this file with your answers.
Save this file as yourlastname_yourfirstname_Lab3.rtf and then submit online at 
http://www.networks.howard.edu/lij/courses/2016/211/