Linux cat -e command (to display $)
The 'cat-e' option displays '$' sign at the end of every line.
Look at above snapshot, some lines include spaces also. A user won't be able to recognise whitespace at the end of each line. "cat -e program" command will put the $ sign at the end of every line including spaces.