The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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



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
How to find a date which is 7 days past when given current date ladtony Shell Programming and Scripting 17 04-09-2009 05:06 PM
Can I know find syntax to find given date files bache_gowda Shell Programming and Scripting 3 03-26-2008 06:37 AM
date issue-find prevoius date in a patricular format bsandeep_80 UNIX for Advanced & Expert Users 3 11-15-2007 08:42 PM
Find julian date for given corresponding date srikanthus2002 Shell Programming and Scripting 2 10-10-2006 10:33 PM
How to find Previous date and Coming date arunava_maity UNIX for Dummies Questions & Answers 2 05-24-2001 12:41 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-11-2009
saic saic is offline
Registered User
  
 

Join Date: Dec 2008
Posts: 18
date with find cmd

Hi
for today i have 10 files, in that i need search some values how can i write a find cmd with
perticular date
thanks
SAIC
  #2 (permalink)  
Old 02-11-2009
JerryHone JerryHone is offline
Registered User
  
 

Join Date: Nov 2006
Location: UK
Posts: 178
Code:
find . -m1 -exec <command> {} \;
will find files in current directory last modified less than 1 day ago and submit each name in turn as a parameter to <command>

HTH

Jerry
  #3 (permalink)  
Old 02-11-2009
sunpraveen's Avatar
sunpraveen sunpraveen is offline
Registered User
  
 

Join Date: Jan 2009
Location: Pruthvi
Posts: 85
Try this:

Code:

grep -i "expression" `find . -mtime 1`
  #4 (permalink)  
Old 02-11-2009
just4fundoit just4fundoit is offline
Registered User
  
 

Join Date: Jan 2009
Posts: 19
find <DIR_NAME> -exec grep "SEARCH_PATTERN" '{}' \; -print
  #5 (permalink)  
Old 02-12-2009
just4fundoit just4fundoit is offline
Registered User
  
 

Join Date: Jan 2009
Posts: 19
find <DIR_NAME> -m1 -exec grep "SEARCH_PATTERN" '{}' \; -print
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 On




All times are GMT -4. The time now is 05:32 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-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0