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

From: Paul.Soltermann@vonroll-isola.com
Date: Wed Apr 16 2003 - 13:52:32 EDT


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)


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:28 EDT