Skip to content

Instantly share code, notes, and snippets.

@2Andrew4
Created September 12, 2021 02:27
Show Gist options
  • Save 2Andrew4/9e2d3e9521a685b41bdb2ba11b0e73fb to your computer and use it in GitHub Desktop.
Save 2Andrew4/9e2d3e9521a685b41bdb2ba11b0e73fb to your computer and use it in GitHub Desktop.
How much times you would compare two directories recursive?
#! /bin/bash
## starter under gpl licensed
## contact: a@ŧ website@luna-net.org
echo "wie viele Vergleiche?"
echo "How many comparings?"
read thech
COUNTER=0
until [ $COUNTER == $thech ]; do
echo "COMPARE FULL PATH TO DIRECTORY"
read cmpO
echo "Conpare with full path to directory"
read cmpT
echo " - - - - "
meld $cmpO $cmpT
let COUNTER=COUNTER+1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment