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
Post a Comment