Skip to main content

needed to find an email on my dovecot imap software

goal:

find files

1 from 2010 - ie older than 400
2 with "scallix" in the file name
3 with 1738 in the file contents

1. i used http://www.timeanddate.com/date/durationresult.html?m1=06&d1=01&y1=2010&m2=2&d2=15&y2=2012
to calculate the mtime

2. i used http://www.linuxquestions.org/questions/general-10/file-creation-date-in-linux-473684/ to tell me about mtime

3. i used http://www.itworld.com/it-managementstrategy/106032/how-to-grep-tricks-linux-users to look at combining grep with find

4. result:
find . -mtime +400 -name "*scallix*" -exec grep 1738 '{}' \; -print

Comments

Popular posts from this blog

How to change default calendar for new events in Lightning

https://getsatisfaction.com/mozilla_messaging/topics/how_set_default_calendar_for_new_events_in_lightning Edited version Open Tools > Options > Advanced tab, and click Config Editor button. In the "Filter:" box enter "calendar.registry"  Find a .calendar-main-default key - it will be set to true Other calendars either won't have a .calendar-main-default key (or it will be set to false) Right click on the value of the .calendar-main-default key that goes with the calendar that currently shows up by default in new events to toggle the value to false Click on the .calendar-main-in-composite key that goes with the calendar you want as default Right click on the same key and choose Copy Name from the menu that appears. Now right click on the key again and select New > Boolean Paste the name of the key and Use the backspace key to erase "in-composite" and type "default" Click OK and Choose true and click OK Now exit out of