perl -i.txt -pe "s/\s//g" test.log