Re: Nice easy sed question
- In reply to: Kurt Hackenberg : "Re: Nice easy sed question"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 12 Sep 2025 00:19:32 UTC
On 9/11/25 18:04, Kurt Hackenberg wrote: > 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. > The synopsis and usage string don't seem to be based in reality all the way back to BSD 4.4 Lite, the original usage here is technically fine. Thanks, Kyle Evans