![]() |
|
|
|||||||
| Home | Forums | Register | Rules & FAQ | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. Shell Script Page. |
Other UNIX.COM Threads You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| to get the timestamp of files from the files and folders in Unix | kishan | HP-UX | 2 | 04-09-2008 05:20 AM |
| check position of end of line for some specific lines | senthil_is | Shell Programming and Scripting | 1 | 11-08-2007 09:19 PM |
| How to check for specific process running through shell | agp | Shell Programming and Scripting | 3 | 03-25-2006 02:24 AM |
| Check for specific files | woosaah | Shell Programming and Scripting | 5 | 01-24-2006 02:37 PM |
| How do i check if 2 files have same timestamp? | pt14 | AIX | 1 | 11-18-2005 09:54 AM |
![]() |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
check timestamp on specific files
I have a health check script homed in /u/ainet/scripts
I need to check the time stamp on a file in /opt/config/log/ The file is called Backupdisk.out I want write the same info that you get when you do a ls -l into a file This is what I have been trying: cd /opt/config/log/ ls -l | awk '$9 = "Backupdisk.out" {print $9," last successful "$6, $7," "$8" file size =", $5}' > /cust_use/home/ainet/scripts/allan.out the desired out put in allan.out would be Backupdisk.out last successful May 16 14:05 file size = 3365 |
| Forum Sponsor | ||
|
|