Thanks to visit codestin.com
Credit goes to github.com

Skip to content

osx + linux versions of find_file #5

@59e5aaf4

Description

@59e5aaf4

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 !

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions