Create a script that checks the day of the week, and takes one of two actions (step 2 or 3) depending on the day.
If the day is Monday through Friday, print (send to stdout) the name of the day. Then, find each file named TTDL (Things-To-Do List) in the tree rooted at the current directory (pwd on down). Using a separate output line for each of these files, print the file path (what find returns) and the number of lines in the file (use wc -l). Remember you will need to create at least two TTDL files to test your program: one in your working directory and one in a subdirectory. The script should automatically capture all output in to a file called "may_save"
If the day is Saturday or Sunday, print only a simple message, such as "Go back to sleep".
Run your script on a weekday. Remember that your script should be automatically redirecting your output to a file (such as my_save), and append a copy of your script. I recommend that you test your script on a weekend as well, but I won't require a copy of that output.
Turn In your output file from step 4 and your script.
Copy the output and the script code in to a word document and submit it. NOTE: Microsoft word automatically capitalizes the first alphabet of each sentence - Make sure you turn this feature off. Make sure you follow the naming convention as described in the syllabus. Also remember to always include a complete listing of the actual commands (source code) you used to complete the assignment along with the results in your homework submission.
Sample Output
Friday
1 ./TTDL
2 ./pos420/play/TTDL
5 ./pos420/homework/TTDL
3 ./pos420/TTDL