Categories
October Surprise 2024

how to display spaces and tabs using unix and the “cat” command

I know how to display the files with tabs (aka cat -T filename) but I’ve been trying to figure out how to show the spaces as well. cat -A filename doesn’t work for me, and only replaces tabs with ^I and places $ at the end of the line. How can I utilize cat to print out a file with all tabs and spaces clearly marked?