@anthonyh said:
@scottalanmiller said:
@anthonyh said:
@scottalanmiller said:
I'm not clear what you are asking. Do you want a list of ALL files under said /directory or are you looking for only certain ones?
Every single file under /this/directory.
Oh okay.
find /dir -type f -print
Where /dir is the directory name in question. See if that gives you want you want.
That gives me the absolute path, but no date. I found this command that gets me a little closer:
find /this/directory -type f -exec stat -c "%n %y" {} ;
Gives me this:
/this/directory/data/EFile/DOC/227349_FS86478.pdf 2011-08-19 10:21:22.000000000 -0700
But it's not ideal, yet. I'd need to delimit the file and timestamp with something other than a space. I would love to eliminate the decimal on the seconds as well as the timezone, but I can work around those.
Easier to work with the date if you use UNIX time instead of a human readable format. And you can use the cut command to trim off anything trailing that you don't want.