Tagged Questions
1
vote
1answer
72 views
How to check Today's Day and Search Files
Problem: I need to find out today's date and search a file which contain's today's date in the name. Also another file which contains Yesterday's date.
I was able to do so by something like:
...
2
votes
2answers
56 views
Select greatest numbered filename
Simple requirement but can't find anything online which can achieve it.
I have a list of dated files as below...
filename_20120101.dat
filename_20120102.dat
filename_20120103.dat
I ...
3
votes
2answers
186 views
List files created on Sundays
How do I list/find all the files created on Sundays or Mondays?
How do I use the date parameter to display them?
Something like :
ls -f date + %a
or
find -type f | date +%A
or
find -type f ...
5
votes
3answers
3k views
Find files which are created a certain time after or before a particular file was created
I need a shell script which finds files which are created 1 hour before or 1 hour after a particular file (test.txt) was created.
If I go with find -newer, that means I'd have to create a temporary ...
3
votes
2answers
585 views
List of Recently Modified Files
How can I Get a list of all files modified , say 3 months ago.
I checked this question but I was not able to apply it to my scenario.
I am trying this now , it seems to be working , but I know there ...
3
votes
3answers
6k views
Getting all files that have been modified on a specific date
Is it possible to find all php files within a certain directory that have been modified on a certain date
I'm using
find /var/www/html/dir/ -mtime -28 | grep '\.php'
to get files modified within ...