RE: sed: invalid option -- i

Niraj Gandhi <[email protected]> Wed, 7 Sep 2016 08:38:59 +0000
Newsgroups gmane.comp.gnu.utils.bugs
Message-ID <VI1PR0401MB1855FA7456636AD4FFEF3FC68EF80@VI1PR0401MB1855.eurprd04.prod.outlook.com>
Thanks for the quick response!
I think the issue is due to older version installed. I have GNU sed version 3.02 installed in my machine. This version is cause of the error.
While GNU sed version 4.1.5 installed in the another machine works perfectly fine.

Thanks,
Niraj

-----Original Message-----
From: Bob Proulx [mailto:[email protected]] 
Sent: 07 September, 2016 12:42 PM
To: Niraj Gandhi <[email protected]>
Cc: [email protected]
Subject: Re: sed: invalid option -- i

Niraj Gandhi wrote:
> Can you please help me understand/resolve following error?:
> 
> sed: invalid option -- i
> Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...

Unfortunately you did not include the command you ran to get that error.  If you don't tell us and show us verbatim then how are we to know what you did?  Please say exactly what command you ran.

Also tell us what version of GNU sed you are using.  It seems possible that you are not actually using GNU sed at all.

  sed --version

Bob