• How to run this sed script on Linux?

    From c123456749@gmail.com@21:1/5 to All on Tue Mar 3 09:41:19 2020
    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,

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jasen Betts@21:1/5 to c123456749@gmail.com on Wed Mar 4 00:09:46 2020
    On 2020-03-03, c123456749@gmail.com <c123456749@gmail.com> wrote:
    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,

    delete that line it's not part of the script, the first lines are:

    #\
    # @(#)as386.sed1.1 - 86/11/17\
    #\

    similalrly the last lines are:

    G
    s/\n//
    s/;/\//




    --
    Jasen.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)