Answer the question
In order to leave comments, you need to log in
How to find and show the content of the file with the highest name value?
How to find and show the contents of the file with the highest value name ?
Condition :
The directory /opt/1/ contains files with names like
1436811088_1
1436811088_15
1436813877_7
ls -1v | sort | tail -n 1
Answer the question
In order to leave comments, you need to log in
ls -1c | head
-c with -lt: sort by, and show, ctime (time of last modification of file status information); with -l: show ctime and sort by name; otherwise: sort by ctime, newest first
--sort=WORD
sort by WORD instead of name: none (-U), size (-S), time (-t), version (-v), extension (-X)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question