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
- Arithmetic Operations in SHELL Script Example
- Get File Last Modification Time Information in SHELL Script
- File Last Modification Information in SHELL Script
- UNIX Command Example: Display File Last Modified Information
- UNIX Command Example: Display UTC/GMT Datetime Information
- UNIX Command Example: Display Local Datetime Information
- UNIX Command Example: which - Display Absolute Path Information
- 28 Tutorials to Learn Oracle
- 19 Examples to Learn MySQL
- 20 Steps to Make CakePHP Blog Project

No comments:
Post a Comment
leave your comments here..