How do i display the non printable characters using cat?



  • Man page for cat: https://www.lightnetics.com/post/3635

    Print the tabs.

    $ cat -T  nonprintchars
    This is my tab^I
    This is my space 
    This is my
    

    Print the line break, without tabs and non-printing characters.

    $ cat -E nonprintchars 
    This is my tab	$
    This is my space $
    This is my$
    $
    $
    

    Print the non printing characters without line breaks or tabs.

    $ cat -v nonprintchars
    This is my tab	
    This is my space 
    This is my
    ^M
    

    Print tabs, line breaks and non-printing characters.

    $ cat -A nonprintchars
    This is my tab^I$
    This is my space $
    This is my$
    ^M$
    $
    $
    $
    


© Lightnetics 2024