Skip to content

Instantly share code, notes, and snippets.

@krzyzaq
Created September 22, 2017 11:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krzyzaq/01ca13febd9924dd149c06046d7e27d5 to your computer and use it in GitHub Desktop.
Save krzyzaq/01ca13febd9924dd149c06046d7e27d5 to your computer and use it in GitHub Desktop.
script.sh
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