Quote:
|
Originally Posted by rinku
I want to print only the name of one file which is last modified.
I use ::
$ls -ltr S07* |cut -f 8-9
but it is not working.
it gives the outut
-rw-r--r-- 1 aaaaa aaaaa 0 May 29 00:32 S070528D
-rw-r--r-- 1 aaaaa aaaaa 0 May 29 00:41 S070528S
I want the output
S070528S
please help me.
|
Try this
ls -1 |tail -1
NOTE: ls option is not l (el), but 1 (one)