rtr icon indicating copy to clipboard operation
rtr copied to clipboard

osx + linux versions of find_file

Open 59e5aaf4 opened this issue 2 years ago • 0 comments

Hello !

Is it possible to request a file listing equivalent of find_file.ps1 for osx & linux ? Our alternatives are annoying (planting a binary (+ possible config) and running it). Do you have some find_file.sh somewhere that would report file permissions, timestamps and hashes ?

Here's something I keep using when reviewing disks, just lists timestamps but you'll get the idea I assume.

function ffind () {
# >>> print(' '.join(map(lambda l:'-'.join(map(lambda x:f'%{l}{x}','YmdHMS')),'ACT')))
    find . -type f -printf "%AY-%Am-%Ad-%AH-%AM-%AS %CY-%Cm-%Cd-%CH-%CM-%CS %TY-%Tm-%Td-%TH-%TM-%TS %p\n"
}

Thanks a lot, cheers !

59e5aaf4 avatar Jun 26 '23 10:06 59e5aaf4