M
manian.k
I want to some how modify the contents of a ls listing to only display
the filename and the time it was modified.
Example if I do ls -lt
drwx------+ 1 mkrishnamoorthy Domain Users 0 Feb 16 17:32
Application Data
-rwx------+ 1 mkrishnamoorthy Domain Users 188757 Feb 8 16:12
trial.pdf
-rwx------+ 1 mkrishnamoorthy Domain Users 349544 Feb 8 15:55
IEEEtran.tar.
I just want the time and the file name, that is
Feb 16 17:32 Application Data
How can I push that information into an array.
$array = 'ls -t'
and usr array[1] to get the latest file.
Thanks
the filename and the time it was modified.
Example if I do ls -lt
drwx------+ 1 mkrishnamoorthy Domain Users 0 Feb 16 17:32
Application Data
-rwx------+ 1 mkrishnamoorthy Domain Users 188757 Feb 8 16:12
trial.pdf
-rwx------+ 1 mkrishnamoorthy Domain Users 349544 Feb 8 15:55
IEEEtran.tar.
I just want the time and the file name, that is
Feb 16 17:32 Application Data
How can I push that information into an array.
$array = 'ls -t'
and usr array[1] to get the latest file.
Thanks