[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#31266: please help in below error in sed on hp-ux
From: |
Assaf Gordon |
Subject: |
bug#31266: please help in below error in sed on hp-ux |
Date: |
Fri, 27 Apr 2018 17:25:00 -0600 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
Hello,
(adding back the mailng-list)
On Thu, Apr 26, 2018 at 02:12:58PM +0000, aditya gupta wrote:
> yes sorry,my bad, first / is not there in command so command is below
>
> *Command *
> sed
> '/<!\--dvc-->/{n;/project.version.com.rogers.jarsync.cramer/s:3.0.0.0-134:3.0.0.0-136:g}'
> pom.xml > pom.xml_new
>
> i am not using GNU sed on hp-ux
> it works fine on linux with GNU sed. I want to know the way how this
> command will work on HP-UX
Since this is the GNU sed mailing list, there's not much we can help with
other sed implementations.
On possible thing to try: the ';' command separator is a GNU extension.
Replace it with newlines (each command on a separate line):
'/<!\--dvc-->/ {
n
/project.version.com.rogers.jarsync.cramer/s:3.0.0.0-134:3.0.0.0-136:g
}'
Also, '\-' is not a valid escape sequence.
GNU sed ignores it a simply treats it as "-", but perhaps other
implementations don't.
As such, I'm marking this as "done".
regards,
- assaf