• [^] # Re: ou alors...

    Posté par (site web personnel) . En réponse au message Besoin d'aide pour la commande tr. Évalué à 4.

    Espace insécable, tabulation, blancs masqués par un carriage return, etc.

    $ echo -e " \t\rthe\xA0cake is a lie :)" > /tmp/cake
    $ cat /tmp/cake 
    the�cake is a lie :)
    $ cat -A /tmp/cake 
     ^I^MtheM- cake is a lie :)$
    $ vi /tmp/cake
     ^Mthe cake is a lie :)
    $ od -c /tmp/cake 
    0000000 \t \r t h e 240 c a k e i s a
    0000020 l i e : ) \n
    0000030
    $ hd /tmp/cake 
    00000000 20 09 0d 74 68 65 a0 63 61 6b 65 20 69 73 20 61 | ..the.cake is a|
    00000010 20 6c 69 65 20 3a 29 0a | lie :).|
    00000018