Thread: How to find gaps in a sequence of files ?
i don't know how it, i'll give example.
have list of files in directory named "pict100xxxx.jpg", starting @ "pict1000100.jpg", , ending @ "pict1002661.jpg". there should around 2562 files. there 150 missing. there way find breaks in sequence ?
thinking put file list in .txt file , parse it, perl routine, comparing each previous. have not written line of code last 5 years ... must easier way.
i think like
code:for file in pict{1000100..1002661}.jpg; [ -f "$file" ] || echo "$file" not found; done
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [all variants] How to find gaps in a sequence of files ?
Ubuntu
Comments
Post a Comment