Linux Forums - Linux Help,Advice & support community:LinuxSolved.com

Linux in General => Os Talk => Topic started by: gauravbajaj on April 03, 2006, 09:23:46 PM

Title: Find Command
Post by: gauravbajaj on April 03, 2006, 09:23:46 PM
Hi all

I want to know that wheather  the file are there using find command..
means i wana check   date of creation of file using find command

suppose i wana chek in directory /test that wheather the file of previous date i.e 3/4/2006 (Assuming the current date of system is 2/4/2006) is present or not...??
So how can i do using file command???? I wana do this only find command??
I have tried option find -mtime and  find -ctime but didn't get success..

Please help if anybody can.....

Thx in Advance

Gaurav
Title: Find Command
Post by: Ricky on April 05, 2006, 03:45:52 AM
well, ..

see
dsl.org/cookbook/cookbook_10.html#SEC143
Title: Find Command
Post by: gauravbajaj on April 05, 2006, 10:34:03 AM
Thx Ricky

I will try this and let  you know
Thx again

Gaurav
Title: Find Command
Post by: gauravbajaj on April 07, 2006, 01:46:56 PM
Thx Ricky..
I have made the script with the tutorial you have provided to me, Still My script is not in full functionality.
 
But Really its very good tutorial...

Thanks
Gaurav
Title: Re: Find Command
Post by: Ricky on May 14, 2007, 05:23:18 PM
Hi Gaurav, after a year (almost) have same question here -->
Using commandline for searching & finding (http://www.linuxsolved.com/linux-forums/problems-faced-in-command-line-operations-t2743.0.html) but story is same .
Title: Re: Find Command
Post by: gauravbajaj on May 15, 2007, 05:49:48 AM
Yeah its somewhat same.............
Title: Re: Find Command
Post by: Ricky on May 15, 2007, 09:29:57 AM
So what do you think.. not really any way to find time of creation of file in Linux ?
Title: Re: Find Command
Post by: gauravbajaj on May 21, 2007, 06:04:55 AM
Ricky

I have searched it but was not able to find relevant solution for that but there is command called status, but it doesn't give the required solution as it gives mtime or access time
Title: Re: Find Command
Post by: Ricky on May 21, 2007, 07:29:55 PM
Is it something missing in Linux or we donno the solution ?
Title: Re: Find Command
Post by: Arora on May 22, 2007, 11:46:09 AM
I don't have ur email id , mail me
Title: Re: Find Command
Post by: gauravbajaj on May 24, 2007, 04:07:50 AM
Ricky

I think its somewhat missing in linux but not sure..., searched for that but wasn't able to find appropriate solution......
Title: Re: Find Command
Post by: Ricky on May 31, 2007, 05:13:19 PM
@Gaurav

May be.

@Arora..
What are you talking about ?
Title: Re: Find Command
Post by: dragoncity99 on December 26, 2007, 07:24:47 AM
I believe it is not that Linux have no proper or missing proper solution. It is just that we have a phenomena called "So Near Yet So Far" :D

The answer to using Linux/Unix commands is 1 simple principle that adheres to standards wisely is
--> Use the "man" and "info" tool.

Most of the times Linux tool developers will either document their sample commands in "man" page or "info" page.

# man find
or
# info find

You follow this principle, u dont need 2 waste effort googling around at all. :P