Re: Nice easy sed question
- Reply: Kyle Evans : "Re: Nice easy sed question"
- In reply to: Frank Leonhardt : "Nice easy sed question"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 11 Sep 2025 23:04:20 UTC
On Thu, Sep 11, 2025 at 11:14:50PM +0100, Frank Leonhardt wrote:
>With an -i in any variations of the first two (single command or two
>-e -e) I just get errors like:
>
>": invalid command code e
>": extra characters at the end of N command
>": extra characters after \ at the end of a command
Because you put the command line in the wrong order? Just looking at
the man page, apparently most one-letter flags come before the editing
command, but -I and -i come after it. Peculiar.
SYNOPSIS
sed [-Ealnru] command [-I extension] [-i extension] [file ...]
sed [-Ealnru] [-e command] [-f command_file] [-I extension]
[-i extension] [file ...]
I haven't tested this. Haven't looked at the newline problem, either.