I have an issue whenever I run this script. It gets the right wordcount of the file but whenever I run it in the terminal it has unwanted spacing
#!/bin/bash
char=$(cat $1 | wc -c)
echo "This file has $char characters in it."
nolines=$(cat $1 | tr -d "\n" | wc -c)
echo "This file has $nolines...