Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google site



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

Closed Thread
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-01-2006
Registered User
 

Join Date: Mar 2006
Posts: 89
result of find

Hey,

I am using 'find' to check the existence of a file which is created today, and this is what I have

find . -name $filename -mtime +0 -exec ls {} \;

my problem is I need to know what the above command actually get anything, so can anyone give me some pointer on how to do that? what I need is

if [find the file with today date as timestamp]
then
do something A
else
do something B
fi

Thanks!
Sponsored Links
  #2 (permalink)  
Old 05-02-2006
Registered User
 

Join Date: Mar 2002
Location: singapore
Posts: 7
try to use -mtime -1
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
unexpected pipeline result with find -exec blued Shell Programming and Scripting 5 02-23-2008 12:51 AM
Elimincating double result when using find and grep silas.john Shell Programming and Scripting 1 02-07-2008 01:23 AM
how to use find commnad to show only path of the result umen UNIX for Dummies Questions & Answers 1 02-05-2008 03:22 AM
Setting a variable to result of FIND command JP Favara Windows & DOS: Issues & Discussions 2 03-09-2005 10:17 PM
find command not returning any result rraajjiibb UNIX for Advanced & Expert Users 4 07-23-2004 06:05 PM



All times are GMT -4. The time now is 04:59 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2010. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0