Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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