[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: R: sed (bug or wrong command ?)
From: |
Bob Proulx |
Subject: |
Re: R: sed (bug or wrong command ?) |
Date: |
Mon, 13 Feb 2017 20:33:06 -0700 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
Enrico Magrì wrote:
> I tried also with SED of CYGWIN and all woks correctly:
...
> I type this command:
> sed "1,1s/^/ciao \n /g" comandi-capture.txt
>
> the output is:
> C:\config>sed "1,1s/^/ciao \n /g" comandi-capture.txt
> ciao n capture CAP-IP-85.205.221.241 type raw-data interface OUTSIDE
> circular-buffer match ip any host 85.205.221.241
> capture CAP-IP-85.205.221.240 type raw-data interface OUTSIDE circular-buffer
> match ip any host 85.205.221.240
That is not the output I get from sed.
> I would like see the word "ciao" and then in a new line the rest of
> the file. It seems that \n is not work or I type the wrong command
> :)
That is the output that I get with sed.
What version of sed are you using?
sed --version
I think whatever problem you are having is somehow specific to your
particular installation.
Also, this is a generic bug list. You would get more specific sed
expertise on the <address@hidden> mailing list. I suggest sending
your conversation there.
Bob