![]() |
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 |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| unix find command without mmin option | Bill Ma | Shell Programming and Scripting | 1 | 06-04-2009 02:52 PM |
| Any alternative of find . -mmin 20 | Prat007 | SUN Solaris | 2 | 07-21-2008 10:39 AM |
| Use of mmin | dnayakan | HP-UX | 1 | 01-18-2008 10:08 AM |
| find command using -mmin param | jmbeltran | HP-UX | 3 | 11-11-2004 05:40 AM |
| no [find -mmin -1] | svennie | UNIX for Dummies Questions & Answers | 3 | 10-14-2004 09:37 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Help with find –mmin in a .ksh script
I need to compare the time a file was last modified against current time and conditionally proceed.
At the command prompt I can do: find MYFILE -mmin +1140 and it lists the file. But I need to test, and if true do something I’ve tried things like: if [ $MYFILE -mmin +1140 ]; then if [ find $MYFILE -mmin +1140 ]; then etc. with no luck of course any ideas on using –mmin, or something comparable, to get a true-false result in my script? Last edited by tlavoie; 06-25-2009 at 03:16 PM.. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|