Unix titbits

find . -newermt '30 seconds ago' -print

find ('.' = files in current dir and subfolders thereof) -newermt (an option, see man page) (files changed within) '30 seconds ago' -print (don't forget to print the results to std output) :D

find . \! -name ".DS_Store" -type f -print

find only plain/standard files (-type f) NOT called .DS_Store (\! -name ".DS_Store")(NB escaped !)

Comments

  1. Am digging the Unix 'find' command right now. Writes results to standard output & therefore a DB (sqlite?) Am thinking of using it in some way to build a lookup table to monitor files that have changed in a specific time frame.

    ReplyDelete

Post a Comment

Popular posts from this blog

cURL to REST API

Indesign scripting - negative object reference