Created
September 22, 2017 11:01
-
-
Save krzyzaq/01ca13febd9924dd149c06046d7e27d5 to your computer and use it in GitHub Desktop.
script.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PATH=. | |
FILES="$PATH/1_*" | |
LGHT=$((${#PATH} + 1)) | |
for f in $FILES | |
do | |
DFILE="$PATH/${f:$(($LGHT + 2))}" | |
OFILE="$f" | |
diff -a text.txt 1_text.txt | |
if [ $? -eq 0 ] | |
then | |
echo "zgodne" | |
else | |
echo "niezgodne" | |
fi | |
echo $DFILE | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment