See whitespace with cat Use this: cat -v -t -e <somefile> -e: Add a trailing $ at the end of a line.-t: Show tabs as ^I