☕
🚀
Pinned Loading
-
Simple script to go through all the ...
Simple script to go through all the files in a folder and move any that are identical to a "duplicates" folder. Identical is defined as having the same md5 hash. I used this to save space in a folder that had multiple copies of the same video clips I shot on my iPhone. 1# Make a directory to hold any duplicates we find; this may result in "directory already exists" if running a second time.
2mkdir duplicates
34# Create an empty log file to hold hashes so we know which files we have seen before
5log=/tmp/md5copylog-`date +%s`.log
-
Whatever
Whatever 1¯\_(ツ)_/¯
-
Prepend filenames with hash to rando...
Prepend filenames with hash to randomize order 1# change mask for different filetypes
23for f in *.batch;
4do
5m=`shasum ${f} | awk '{print substr($1,0,6)}'`
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.