Hi All,
Can anyone help with the following.
In a directory I have the following:-
-rw-rw-rw- 1 root other 17077 May 1 15:23 1790
-rw-rw-rw- 1 root other 31651 May 1 11:31 1789
-rw-rw-rw- 1 root other 17372 Apr 30 15:25 1788
-rw-rw-rw- 1 root other 24651 Apr 30 11:32 1787
-rw-rw-rw- 1 root other 24627 Apr 29 15:26 1786
-rw-rw-rw- 1 root other 32878 Apr 29 11:32 1785
The last field of each line is the file name e.g. 1790,1789
I am trying to write a script that will pick up all the files created each day and email them to an external email.
Any clues on how I might read the directory so that it only gives me a list of files created on the 1st May.
Any help would be very grate. Thanks in advance.
Can anyone help with the following.
In a directory I have the following:-
-rw-rw-rw- 1 root other 17077 May 1 15:23 1790
-rw-rw-rw- 1 root other 31651 May 1 11:31 1789
-rw-rw-rw- 1 root other 17372 Apr 30 15:25 1788
-rw-rw-rw- 1 root other 24651 Apr 30 11:32 1787
-rw-rw-rw- 1 root other 24627 Apr 29 15:26 1786
-rw-rw-rw- 1 root other 32878 Apr 29 11:32 1785
The last field of each line is the file name e.g. 1790,1789
I am trying to write a script that will pick up all the files created each day and email them to an external email.
Any clues on how I might read the directory so that it only gives me a list of files created on the 1st May.
Any help would be very grate. Thanks in advance.