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
-
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
-
well, ..
see
dsl.org/cookbook/cookbook_10.html#SEC143
-
Thx Ricky
I will try this and let you know
Thx again
Gaurav
-
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
-
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 .
-
Yeah its somewhat same.............
-
So what do you think.. not really any way to find time of creation of file in Linux ?
-
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
-
Is it something missing in Linux or we donno the solution ?
-
I don't have ur email id , mail me
-
Ricky
I think its somewhat missing in linux but not sure..., searched for that but wasn't able to find appropriate solution......
-
@Gaurav
May be.
@Arora..
What are you talking about ?
-
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