linux - List all files (with full paths) in a directory (and subdirectories), order by access time -
i'd construct linux command list files (with full paths) within specific directory (and subdirectories) ordered access time.
ls can order access time, doesn't give full path. find gives full path, control have on access time specify range -atime n (accessed @ least 24*n hours ago), isn't want.
is there way order access time , full path @ once? write script, seems there should way standard linux programs.
find . -type f -exec ls -l {} \; 2> /dev/null | sort -t' ' -k +6,6 -k +7,7
this find files, , sort them date , time. can use awk
or cut
extract dates , files name ls -l
output
Comments
Post a Comment