🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: best.general
Article #1650

perl versions of sed commands?

#1650
From: Zenin
Date: Sun, 19 Nov 1995 00:00
15 lines
1028 bytes
I'm having a problem with sed. -It doesn't like really long single lines.
(in the order of 100k+ plus characters... :)

I'm hoping perl can handle them a little better.
So if I wanted to do somthing like "sed 's/string1/string2/g' filename" in
perl how would I do it? -From a sh script?

I also can't figure out how to put control characters and high ascii in 
regular expressions.  Is their a way to use their hex values?  Tr can do it,
can sed? perl? awk? -The man pages haven't helped nor has the unix faq...

Thanks! :)

-Zenin
zenin@best.com
Technical Details
Message-ID: <48o3if$qtp@shellx.best.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f9f6d,bf8145ae39ef9a25,start
X-Google-Attributes: gidf9f6d,public
X-Google-Thread: 1012a6,bf8145ae39ef9a25,start
X-Google-Attributes: gid1012a6,public
From: Zenin <zenin@best.com>
Subject: perl versions of sed commands?
Date: 1995/11/19
Message-ID: <48o3if$qtp@shellx.best.com>
X-Deja-AN: 119766268
organization: Rocky Horror, Barely Legal (Berkeley, CA)
newsgroups: best.general,comp.unix.shell