I know the output isn\t being recognized as integer but I fail to understand why? The file has more than 5 lines.
$ if [ "$(wc -l test.txt)" -gt "$5" ]; then
echo changes found;
else
echo No changes found;
fi
bash: [: 6 test.xml: integer expression expected
No changes found