home.social

#dirs — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #dirs, aggregated by home.social.

fetched live
  1. CW: solution

    @hal_pomeranz this one compares the directories pairwise and considers files to be "the same" if the size and checksum match

    dirs=(*)
    for ((i=0; i < ${#dirs[@]}; i++)); do
    for ((j=i+1; j < ${#dirs[@]}; j++)); do
    echo ${dirs[i]} - ${dirs[j]}; rsync -vvrcn ./${dirs[i]}/ ./${dirs[j]}/ | grep uptodate
    done
    done

  2. CW: solution

    @hal_pomeranz this one compares the directories pairwise and considers files to be "the same" if the size and checksum match

    dirs=(*)
    for ((i=0; i < ${#dirs[@]}; i++)); do
    for ((j=i+1; j < ${#dirs[@]}; j++)); do
    echo ${dirs[i]} - ${dirs[j]}; rsync -vvrcn ./${dirs[i]}/ ./${dirs[j]}/ | grep uptodate
    done
    done