1833832 Members
2037 Online
110063 Solutions
New Discussion

Re: find file

 
ivychung2
Frequent Advisor

find file

I have many file in the directory , if I want to list the files that the timestamp is a specific date , eg . 10th Apr and 11th Apr , could suggest what can I do ? thx.
3 REPLIES 3
Senthil Kumar .A_1
Honored Contributor

Re: find file


ll | tr -s " " |grep ":" | grep -i "apr 6" | awk '{print $9}' | more

go the directory you are interested..
If the date is of the current year use the above command. If the date is from previous years.. replace the ":" in the above command with the year. e.g. "2003".


Here i have used "apr 6th" as example.

Regards,
Senthil Kumar .A
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Senthil Kumar .A_1
Honored Contributor

Re: find file

you can ignore the last pipeline with "awk" command if you want the long listing...
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Indrajit_1
Valued Contributor

Re: find file

Hi;

Try the following command.

#find * |grep -i "Apr 10" -print
#find * |grep -i "Apr 11" -print

The above commands should resolve your issue.

Cheers
indrajit
Never Ever Give Up