AWK SHELL Script File Last Modification Information Changing Delimiter

SHELL Script Example: File Last Modification awk delimiter change

SHELL Script Example: how to get file last modification hour & minutes info by using SHELL awk command changing delimiter run time?

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

ls -ltr sys_monitoring.sh | awk '{print $8}' | awk -F':' '{print $1$2}'

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

SHELL Script Example: File Last Modification awk delimiter change - output in the unix shell command prompt

 

Related Tutorial Examples

  1. Arithmetic Operations in SHELL Script Example
  2. Get File Last Modification Time Information in SHELL Script
  3. File Last Modification Information in SHELL Script
  4. UNIX Command Example: Display File Last Modified Information
  5. UNIX Command Example: Display UTC/GMT Datetime Information
  6. UNIX Command Example: Display Local Datetime Information
  7. UNIX Command Example: which - Display Absolute Path Information
  8. 28 Tutorials to Learn Oracle
  9. 19 Examples to Learn MySQL
  10. 20 Steps to Make CakePHP Blog Project

No comments:

Post a Comment

leave your comments here..