HP3000-L Archives

December 2001, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Mark Bixby <[log in to unmask]>
Reply To:
Mark Bixby <[log in to unmask]>
Date:
Thu, 13 Dec 2001 17:36:05 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (18 lines)
Michael Marxmeier wrote:

>>Does anyone know a quick way, with shell script to replace a given string
>>with another string in an ASCI or Bytestream file?
>>
>
> sed -e 's/old/new/g' in > out


Perl can do this kind of stuff in-place without creating a separate file; see
http://www.perldoc.com/perl5.6/pod/perlrun.html and look at the "-i" parameter.
--
[log in to unmask]
Remainder of .sig suppressed to conserve scarce California electrons...

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2