I'm in a directory with hundreds of files and need to see between a certain date range. Is there a way to do this with ls -la?
I don't know how to do a date range but you can list by date:
If you have a lot of files you can pipe that to more:Code:# ls - lt
Code:# ls -lt | more
You can use a script to do this:
Name it something and then pass it a date. IE: myscript.sh 10/13/2009Code:#!/bin/bash for filename in *; do if [[ `date -r $filename +%Y` = $1 ]]; then echo $filename fi done
Thanks Tor, I think that will work for me.
Anytime.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks