You can use cat -A or –show-all options to display non-printing (^ and M-), tab (^I), and $ at the end of line, equivalent to -vET.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
## Add some content with non-printing, tab and new lines to the file echo -e "non-printing: \004\ntab: \t examples" > myfile ## Display non-printing (^ and M-), tab (^I) and $ at the end of line cat -A myfile ## equivalent to cat -vET ## returns ## non-printing: ^$ ## tab: ^I examples$ cat -vET myfile ## same as cat -A ## returns ## non-printing: ^$ ## tab: ^I examples$ cat myfile ## returns the original file contents ## returns ## non-printing: ## tab: examples |