File Last Modification Time Information in SHELL Script

SHELL Script Example: Get File Last Modified Time

SHELL Script Example: how to get last modification time of a file in unix shell?

Logon to command prompt then copy & past the bellow code to get the desired result:

ls -ltr | awk '{print $8}' | awk -F':' '{print $2}'

Here "" is the file & we want to get it's last modification time. If everything went well you should get some interesting result as follows:

SHELL Script Example: Get File Last Modified Time - output in the unix shell command prompt


Related Tutorial Examples

  1. AWK SHELL Script File Last Modification Information Changing Delimiter
  2. File Last Modification Information in SHELL Script
  3. Arithmetic Operations in SHELL Script Example
  4. UNIX Command Example: kill - Kill Stops a Process
  5. UNIX Command Example: ps - Display Process List Information
  6. UNIX Command Example: jobs - Display Current Shell Information
  7. UNIX Command Example: file - Display File Type Extension Information
  8. 28 Tutorials to Learn Oracle
  9. 20 Steps to Make CakePHP Blog Project
  10. 19 Examples to Learn MySQL

No comments:

Post a Comment

leave your comments here..