Difference between revisions of "Talk:FreeBSD"

From Secure Computing Wiki
Jump to: navigation, search
(New page: That "Find the date of the newest file in a directory." command looks for the newest file in all the subdirectories too. For "the newest file in a directory" I'd use <code>ls -tr /some/di...)
 
(I'll call you, and raise 1)
Line 1: Line 1:
 
That "Find the date of the newest file in a directory." command looks for the newest file in all the subdirectories too.  For "the newest file in a directory" I'd use <code>ls -tr /some/directory | tail -1</code>
 
That "Find the date of the newest file in a directory." command looks for the newest file in all the subdirectories too.  For "the newest file in a directory" I'd use <code>ls -tr /some/directory | tail -1</code>
 +
 +
== I'll call you, and raise 1 ==
 +
 +
How about: ls -ltr | tail -1 | awk '{print $6" "$7" "$8}'

Revision as of 11:18, 13 January 2009

That "Find the date of the newest file in a directory." command looks for the newest file in all the subdirectories too. For "the newest file in a directory" I'd use ls -tr /some/directory | tail -1

I'll call you, and raise 1

How about: ls -ltr | tail -1 | awk '{print $6" "$7" "$8}'