Skip to content
View ehedaya's full-sized avatar
🚀
🚀

Block or report ehedaya

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. 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.
    2
    mkdir duplicates
    3
    
                  
    4
    # Create an empty log file to hold hashes so we know which files we have seen before
    5
    log=/tmp/md5copylog-`date +%s`.log
  2. Whatever Whatever
    1
     ¯\_(ツ)_/¯
  3. Prepend filenames with hash to rando... Prepend filenames with hash to randomize order
    1
    # change mask for different filetypes
    2
    
                  
    3
    for f in *.batch;
    4
    do
    5
            m=`shasum ${f} | awk '{print substr($1,0,6)}'`