[HPADM] Summery : Howto remove control characters from a unix text fil e

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

  • Next message: Garner, Jim - DIT: "[HPADM] [SUMMARY] Can a mirrored boot disk be hot-replaced"
    From: Paul.Soltermann@vonroll-isola.com
    To: hpux-admin@dutchworks.nl
    Date: Wed, 16 Apr 2003 18:55:13 +0100
    
    

    Thank you to Steve Illgen, this was the reference needed !
    It works fine.
    Paul

                                                                                                                            
                        Illgen Steve 448
                        <steve.illgen@crackerb An: "'Paul.Soltermann@vonroll-isola.com'"
                        arrel.com> <Paul.Soltermann@vonroll-isola.com>
                                                     Kopie:
                        2003/04/16 17:23 Thema: RE: [HPADM] Howto remove control characters from a unix text
                                                      fil e
                                                                                                                            

    Use sed:

    sed -e "s/^L//" file1 > file2

    Make sure you enter [Ctrl] V, before typing the letter L. [Ctrl] V causes
    the next character to be interpreted as a control character. In this case,
    '[Ctrl] V, L' shows up as '^L'.

    I hope this helps.

    Steve Illgen
    Unix Systems Administrator
    Cracker Barrel Old Country Store, Inc.
    "Pass the Biscuits, Please!"

    -----Original Message-----
    From: Paul.Soltermann@vonroll-isola.com
    [mailto:Paul.Soltermann@vonroll-isola.com]
    Sent: Wednesday, April 16, 2003 11:58 AM
    To: hpux-admin@DutchWorks.nl
    Subject: [HPADM] Howto remove control characters from a unix text file

    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)
    --
                 ---> 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: Garner, Jim - DIT: "[HPADM] [SUMMARY] Can a mirrored boot disk be hot-replaced"

    Relevant Pages

    • [HPADM] 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> ... Schweizerische Isola-Werke AG ...
      (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)
    • [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)
    • 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)