in reply to Re: Strange character beginning text files
in thread Strange character beginning text files

To limit data to the ASCII printable set you can just do tr/\011\012\015\040-\176//cd You may want to lose or change one of the CR LF chars as well.

Opps, forgot tab, thanks beable

cheers

tachyon

Replies are listed 'Best First'.
Re^3: Strange character beginning text files
by beable (Friar) on Jul 20, 2004 at 07:55 UTC
    Tut tut, sirrah. \011 is printable. From "man ascii":
    Oct Dec Hex Char 011 9 09 HT '\t'
    </nitpick>

      Ooops, forgot that! That's what happens if you code off the top of your head with no unit tests :-)

      cheers

      tachyon