On 2015-10-09 15:57 , Larry Colen wrote:
If, however, there were an easy way to go through a large number of files in
a large directory tree, on a mac, and detect any large sequences of missing
files  (in the format of YYYYMMDD-LRCNNNNN.DNG (or .AVI) that would tell me
right off the bat which files might be missing, and I could just look on the
various cards for files in that sequence of numbers.

"C" appears in only one position in each file name; if "C" is not used in any of the directory names, we can use it as a field separator, and this should work from a shell connected to the top level directory to scan; it assumes there are no repeats; in case it breaks, this should be one line:

find . -name '*.DNG' -follow -print | sort --field-separator="C" -k 2 | awk -F 'C|\.DNG' '$2!=p+1{print}{p=$2}'



--
PDML Pentax-Discuss Mail List
PDML@pdml.net
http://pdml.net/mailman/listinfo/pdml_pdml.net
to UNSUBSCRIBE from the PDML, please visit the link directly above and follow 
the directions.

Reply via email to