![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How can I find files by date or size from stout? | umen | UNIX for Dummies Questions & Answers | 2 | 01-13-2008 09:04 AM |
| shell script to find files by date and size | dadadc | UNIX for Dummies Questions & Answers | 1 | 10-20-2007 06:18 AM |
| command to find out total size of a specific file size (spread over the server) | abhinov | SUN Solaris | 3 | 08-08-2007 07:48 AM |
| Delete file by date or by size | odogbolu98 | Filesystems, Disks and Memory | 1 | 03-14-2002 07:00 PM |
| find the file by size | rooh | UNIX for Dummies Questions & Answers | 1 | 08-16-2001 08:21 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Find file size and date
Hi in my shell script I have to do this
1. there is a file called testing.txt in /home/report directory If the file size is 0(zero) and date is today's date, then I have to print "Successful" else "Failed". 2. There is a file called number.txt which will have text only one line like this 20080324|0000040768 the first 8 digits is date. I have to check if that date is today's date, if so print 40768. I mean I have to trim 0000040768 to 40768. Any help is appreciated. Regards, G. |
| Bookmarks |
| Tags |
| awk, awk trim, mtime, trim, trim awk |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|