SED Qeustion

SED Qeustion

Post by Andrew Giert » Wed, 04 Feb 1998 04:00:00



 arnel> Does anybody know how to configure sed to recognize
 arnel> CTRL characters in the search?  I want to delete a bunch

try

tr -d '\015\000' <infile >outfile

instead.

--
Andrew.

comp.unix.programmer FAQ: see <URL: http://www.erlenstar.demon.co.uk/unix/>
                           or <URL: http://www.whitefang.com/unix/>

 
 
 

SED Qeustion

Post by bmar.. » Thu, 05 Feb 1998 04:00:00




   >> Does anybody know how to configure sed to recognize
   >> CTRL characters in the search?  I want to delete a bunch

   >cat fname | sed 's/\015//g' | sed 's/\000//g' > fname.NEW
Most versions of sed don't work with \octal sequences, and I'm not sure if
sed can handle null characters in any form.  Try tr -d.  And lose the cat.

Net-Tamer V 1.08X - Test Drive

 
 
 

SED Qeustion

Post by R. Brock Lyn » Wed, 11 Feb 1998 04:00:00


Use vi, and then do a

and then a
:%s/^M//g

Maybe you can put this into an ex script?


Brock

 
 
 

1. sed sed sed

On solaris 9 - why are there multiple copies of sed installed.  One in /usr/ucb
owned by the SUNWscpu third party package, /usr/xpg4/bin/sed by SUNWxcu4, and
one in /usr/bin owned by SUNWcsu.  I've looked on other Sun machines not
maintained by me and the same versions of sed are in the same place owned by the
same packages.

Why the multiple copies?

2. Proxy server, but only as a cache

3. . 2 sed FAQs, sed exes, sed cetras; URLs

4. Running dxconsole/xconsole on a x-client

5. SED SED SED...

6. support for adaptec AVA-1502

7. (sed 1q ; sed 2q) : no output from 2nd 'sed'

8. Two questions: Xircom and Gravis

9. Apache-related security qeustion

10. AWK Qeustion!!

11. NEWBIE Qeustion - where to put $DISPLAY variable

12. QEUSTION: How to read images

13. QEUSTIONS about /etc/hosts.equiv and $(HOME)/.rhosts