Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.development.apps > #898

How to run this sed script on Linux?

X-Received by 2002:a37:dd7:: with SMTP id 206mr5463785qkn.12.1583257279761; Tue, 03 Mar 2020 09:41:19 -0800 (PST)
X-Received by 2002:a9d:7a81:: with SMTP id l1mr4152903otn.26.1583257279447; Tue, 03 Mar 2020 09:41:19 -0800 (PST)
Path csiph.com!xmission!news.snarked.org!border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups comp.os.linux.development.apps
Date Tue, 3 Mar 2020 09:41:19 -0800 (PST)
Complaints-To groups-abuse@google.com
Injection-Info google-groups.googlegroups.com; posting-host=130.76.112.17; posting-account=r24XpwkAAABfAJg5TJRsTScS4AL5MjOT
NNTP-Posting-Host 130.76.112.17
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <fcc72c8d-649e-47d6-a8ad-babb03fbec77@googlegroups.com> (permalink)
Subject How to run this sed script on Linux?
From c123456749@gmail.com
Injection-Date Tue, 03 Mar 2020 17:41:19 +0000
Content-Type text/plain; charset="UTF-8"
Lines 17
Xref csiph.com comp.os.linux.development.apps:898

Show key headers only | View raw


How do I run this sed script on Linux?

I tried placing the code in a file named as386.sed and then executing the following command. The input to the program is in a file called input_file.

Command:
sed -i -f as386.sed input_file

When I run this is tells me, sed: file as386.sed line 1: unknown command: '*'

If I put at the top of that file "#!/bin/bash" and run the command it tells me, sed: file as386.sed line 3: extra characters after command.

A link to the sed script is here:

http://www.delorie.com/djgpp/mail-archives/djgpp/1995/06/06/05:48:34

Click on the "DJGPP news group" link.

Thank you,

Back to comp.os.linux.development.apps | Previous | NextNext in thread | Find similar


Thread

How to run this sed script on Linux? c123456749@gmail.com - 2020-03-03 09:41 -0800
  Re: How to run this sed script on Linux? Jasen Betts <jasen@xnet.co.nz> - 2020-03-04 00:09 +0000

csiph-web