Basic Perl Scripting Exercise 1 To be handed in: Thursday 11th of October In this exercise we give an example of analyzing the contents of a directory. The following example will be explained during the lecture: We want to analyze the contents of the directory /tmp containing these files: -rw------- 1 rongzhen rongzhen 1679 Oct 1 11:20 krb5cc_529 -rw------- 1 bab bab 1317 Oct 1 14:19 krb5cc_558 -rw------- 1 yasve yasve 2899 Oct 1 20:51 krb5cc_532 -rw------- 1 shlchen shlchen 1281 Oct 2 03:20 krb5cc_517 -rw------- 1 elias elias 3961 Oct 2 06:47 krb5cc_569 -rw------- 1 linna linna 1215 Oct 2 10:34 krb5cc_550 Using the following script we obtain all files belonging to user elias: ls -l /tmp| perl -n -e '@a=split;print if $a[2] eq "elias";' Output: -rw------- 1 elias elias 3961 Oct 2 06:47 krb5cc_569 Your Exercise: Take a given directory on your computer and write a similar script as above that will print all files that were modified on the first day of any month (i.e. 1st of Jan, 1st of Feb etc). Hand in the following: the contents of the directory (ls -ltr), the script, and the output of the script.