List files and timestamp of creation on AIX system (Perl) -


i want perform command ls -l --time-style="+%s" on aix system.
need timestamp of file , filename.

with this answer, made:

find . -type f -exec perl -le 'print((stat shift)[9])' {} \; 

but can't find way print filename perl (i don't know language , have troubles one-liner syntax).
i'm experimenting this:

perl -le 'print((stat shift)[9] . " ???")' foo.txt 

can me out?

what you're looking @argv array, can use loop over, , check $_ current file name,

perl -le 'print((stat $_)[9] . " $_") @argv' foo.txt 

Comments

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -