Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get Timestamp on a File

Status
Not open for further replies.

jestrada101

Technical User
Mar 28, 2003
332
Is there a method to get the timestamp from a file without doing an "ls" with a "cut"?

Thanks
JE

 
The only other way I know to do this would be to use

ls -l | awk '{print $6" "$7" "$8}'

The double quotes are so there will be a space between the fields.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top