# Display files created on particular date

**URL:** <https://community.unix.com/t/display-files-created-on-particular-date/194074>\
**Category:** UNIX for Dummies Questions & Answers\
**Created:** [April 22, 2008, 4:48am UTC](https://community.unix.com/t/display-files-created-on-particular-date/194074 "2008-04-22T04:48:35Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![amit\_kv1983](https://community.unix.com/letter_avatar/amit_kv1983/32/5_5575768a8748004e209b776fc1b2916d.png) [@amit\_kv1983](https://community.unix.com/u/amit_kv1983)\
**Post date:** [April 22, 2008, 4:48am UTC](https://community.unix.com/t/display-files-created-on-particular-date/194074/1 "2008-04-22T04:48:35Z")

</div>

hi , i am trying to display the files created on a particular date. I have tried using find .-mtime +n but these files are created on november 6th 2007 , so i'm not sure of what the 'n' value should be. And the number of files created on that particular day are more than 5000 so i have to make a list of those files created along with the time and date of creation . Can anyone of you can help me out i achieving this.............

---

<div class="post-metadata">

**Author:** ![krishmaths](https://community.unix.com/letter_avatar/krishmaths/32/5_5575768a8748004e209b776fc1b2916d.png) [@krishmaths](https://community.unix.com/u/krishmaths)\
**Post date:** [April 22, 2008, 4:56am UTC](https://community.unix.com/t/display-files-created-on-particular-date/194074/2 "2008-04-22T04:56:09Z")

</div>

```nohighlight
ls -l | grep "Nov 6" | awk '{print $9" "$6" "$7" "$8}'

```

This lists filename, Date, Time

---

<div class="post-metadata">

**Author:** ![amit\_kv1983](https://community.unix.com/letter_avatar/amit_kv1983/32/5_5575768a8748004e209b776fc1b2916d.png) [@amit\_kv1983](https://community.unix.com/u/amit_kv1983)\
**Post date:** [April 22, 2008, 5:37am UTC](https://community.unix.com/t/display-files-created-on-particular-date/194074/3 "2008-04-22T05:37:06Z")

</div>

Thanks alot man , its working .And i need another help , the files which are created are of the following format "index.log.08 Nov 07 03.29.15.zip" . This zip file is having spaces in its name , how can i delete file's of this type.

---

<div class="post-metadata">

**Author:** ![krishmaths](https://community.unix.com/letter_avatar/krishmaths/32/5_5575768a8748004e209b776fc1b2916d.png) [@krishmaths](https://community.unix.com/u/krishmaths)\
**Post date:** [April 22, 2008, 6:08am UTC](https://community.unix.com/t/display-files-created-on-particular-date/194074/4 "2008-04-22T06:08:00Z")

</div>

```nohighlight
ls *\ *

```

Check if the above commands lists required files.

If it is successful then you can issue the dangerous rm command.

```nohighlight
rm *\ *

```

Be cautious in removing files. Make sure the pattern matching works fine.

---

<div class="post-metadata">

**Author:** ![amit\_kv1983](https://community.unix.com/letter_avatar/amit_kv1983/32/5_5575768a8748004e209b776fc1b2916d.png) [@amit\_kv1983](https://community.unix.com/u/amit_kv1983)\
**Post date:** [April 24, 2008, 6:09am UTC](https://community.unix.com/t/display-files-created-on-particular-date/194074/5 "2008-04-24T06:09:48Z")

</div>

rm \*\* isn't working man. Instead i've used ur command to create a file having a list of all the file's to be deleted. Using this command [COLOR="Red"]ls -l | grep "Apr 23" | awk '{print $9"|"$10"|"$11"|"$12}' \> list\_file.sh/COLOR] , this approach is working fine for all the files created on April 3 but now i've to modify this command to delete all the files created one month before the current calender date . Do you have any idea idea abt it ????

---

<div class="post-metadata">

**Author:** ![amit\_kv1983](https://community.unix.com/letter_avatar/amit_kv1983/32/5_5575768a8748004e209b776fc1b2916d.png) [@amit\_kv1983](https://community.unix.com/u/amit_kv1983)\
**Post date:** [April 24, 2008, 6:30am UTC](https://community.unix.com/t/display-files-created-on-particular-date/194074/6 "2008-04-24T06:30:22Z")

</div>

Soory , i meant April 23 in last post . The approach i'm trying is that i've written a shell script which call's this the command "ls -l | grep "Apr 23" | awk '{print $9"|"$10"|"$11"|"$12}' \> list\_file.properties" . I'm calling the file created by the above command in the same script and concatanate the various parameter's present in file line by line . There by deleting the file by firing the command rm "file name without spaces". This is working .Now I have to set up a cron to fire this script every month whereby it should delete the file created one month back.

---

<div class="post-metadata">

**Author:** ![krishmaths](https://community.unix.com/letter_avatar/krishmaths/32/5_5575768a8748004e209b776fc1b2916d.png) [@krishmaths](https://community.unix.com/u/krishmaths)\
**Post date:** [April 24, 2008, 6:40am UTC](https://community.unix.com/t/display-files-created-on-particular-date/194074/7 "2008-04-24T06:40:36Z")

</div>

May be you should have a look at Perderabo's [datecalc](http://www.unix.com/unix-dummies-questions-answers/4870-days-elapsed-between-2-dates.html#post16559)
