[x] Welcome to LinuxSolved.com Linux help forums, here we are a community of Linux users helping each other. It is helpful to both ie. new linux users as well experienced one. We always have our experts to help you and ofcourse members help each other, so you can ask for help any time by Registering.: Click to Register

Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Linux Forums - Linux Help,Advice & support community:LinuxSolved.com  |  Forum  |  Linux in General  |  Linux Development & Programming  |  Topic: Script using find command
The LinuxSolved.com GNU/Linux User Communit - Forum
Welcome to LinuxCommunity You have just arrived to a friendly linux community which is helping Linux Users from Years.. You can be its part if you have not already joined it. Registration is FREE and is gateway to unlimited help and support to all your linux related needs. If you are an GNU/Linux supporter then you have come to the right place.
Pages: [1]
  Print  
Author Topic: Script using find command  (Read 704 times)
0 Members and 1 Guest are viewing this topic.
gauravbajaj
LST CareTaker
Experienced
*****
Offline Offline

Posts: 597


View Profile
« on: November 26, 2006, 07:37:14 AM »

Hi all,

Sorry to come this forum after a long time, but really i was very busy in my project activities.



I am trying to write a script bash which display the files in dir and its subdir between particular dates.

like i want user to give input as two dates like 20061123 and 20061128, and now my script will search the files between these two dates and

i tried to make this  using find command which display the fileswhich is newer then particular date but strucked up how to find the files older then a particular date

Logic behind this  is My script find the files newer then particular date and older then some date ..then store this output in a particular file and take out common entries


Any help is appriciated...................
 
Thanks

Gaurav
Logged
lugoteehalt
Linux Noob !
*
Offline Offline

Gender: Male
Posts: 22


View Profile WWW
« Reply #1 on: December 13, 2007, 11:36:51 AM »

This finds files last looked at between 2 and 6 minutes ago:  find /dir -amin +2 -amin -6Full description of time searching with find:  http://www.gnu.org/software/findutils/manual/html_mono/find.html#Time.  Hope some help. Smiley
« Last Edit: December 13, 2007, 11:40:45 AM by lugoteehalt » Logged
dragoncity99
LST CareTaker
Experienced
*****
Offline Offline

Posts: 494


View Profile
« Reply #2 on: December 14, 2007, 10:02:04 PM »

Owez read the man page dude Smiley

# man find
Logged
Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
   

 Logged
Pages: [1]
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Cant find mail Linux Servers Support johnnycash 0 757 Last post June 15, 2004, 08:01:58 AM
by johnnycash
Redhat cant find hardrive Other Devices newbert 7 2066 Last post June 22, 2004, 09:23:59 AM
by Ricky
How to run a shell script using service command Linux Development & Programming sridip 3 1812 Last post May 07, 2006, 09:17:10 AM
by dragoncity99
Find Command Os Talk gauravbajaj 12 1985 Last post December 26, 2007, 02:24:47 AM
by dragoncity99
where can I find Logs Miscellaneous raid2005 2 493 Last post August 05, 2006, 11:07:08 PM
by raid2005
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 22, 2008, 10:10:52 AM

Login with username, password and session length
Navigation
Recent Discussions
[November 20, 2008, 11:30:52 PM]

[November 19, 2008, 07:52:41 PM]

[November 19, 2008, 07:52:36 PM]

[November 17, 2008, 10:42:59 AM]

[November 16, 2008, 12:49:47 AM]

[November 16, 2008, 12:48:58 AM]

[November 15, 2008, 08:29:02 AM]

[November 15, 2008, 08:24:41 AM]

[November 14, 2008, 05:11:50 AM]

[November 13, 2008, 03:28:22 AM]
Members
Total Members: 6227
Latest: karunadct
Stats
Total Posts: 8269
Total Topics: 2253
Online Today: 10
Online Ever: 111
(June 28, 2007, 06:47:29 AM)
Users Online
Users: 0
Guests: 11
Total: 11
Privacy Policy| Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks
Theme & TinyPortal v0.9.8 © Bloc