[HPADM] Howto remove control characters from a unix text file

From: Paul.Soltermann@vonroll-isola.com
Date: 04/16/03

  • Next message: Paul.Soltermann@vonroll-isola.com: "[HPADM] Antwort: RE: Howto remove control characters from a unix text fil e"
    From: Paul.Soltermann@vonroll-isola.com
    To: hpux-admin@dutchworks.nl
    Date: Wed, 16 Apr 2003 17:58:14 +0100
    
    

    Hi All,

    How can I remove control characters from a unix text file.

    For example:

    # grep -v ^L file1 > file2
    does not work, "^L" is still in <file2>

                                       
     Thanks for any help !
                                       
                                       
       Schweizerische Isola-Werke AG
              Paul Soltermann
            Passwangstrasse 20
            CH-4226 Breitenbach
      Phone: +41 61 785 56 47 Natel
                079 4597835
                  Email:
     paul.soltermann@vonroll-isola.com
                                       

    --
                 ---> Please post QUESTIONS and SUMMARIES only!! <---
            To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
           Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
     
     Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
                http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)
    

  • Next message: Paul.Soltermann@vonroll-isola.com: "[HPADM] Antwort: RE: Howto remove control characters from a unix text fil e"

    Relevant Pages

    • [HPADM] Antwort: RE: Howto remove control characters from a unix text fil e
      ... Unix Systems Administrator ... Howto remove control characters from a unix text file ... How can I remove control characters from a unix text file. ... "^L" is still in <file2> ...
      (HP-UX-Admin)
    • [HPADM] Summery : Howto remove control characters from a unix text fil e
      ... Unix Systems Administrator ... Howto remove control characters from a unix text file ... How can I remove control characters from a unix text file. ... "^L" is still in <file2> ...
      (HP-UX-Admin)
    • Q: convert embedded nulls to spaces in csh
      ... so all nulls will appear as a 2-character sequence: ... Please don't tell me to use the Unix "fold" command, ... between the caret and the at-sign, ... There are no other control characters in the source file ...
      (comp.unix.programmer)
    • Re: Problem with @ character
      ... Oh, yes, but we'd need a moded editor anyway, for the odd situation ... to be fixed (and there are other control characters present too). ... I learned a long time ago and on a different UNIX that you ... just can't rely on the backspace key to produce correct output - what ...
      (comp.sys.hp.hpux)
    • Re: how to work with ^@ ^M ^D etc. ?
      ... It seems like if you were creating/editing files in windows and re-editing in unix later. ... When I have that symbols I do this in my console. ... It looks as if you're talking about "control characters". ...
      (perl.beginners)