Link to home
Start Free TrialLog in
Avatar of Thaidog
ThaidogFlag for United States of America

asked on

Sed help needed with openscap shell script

There is an OpenSCAP git project that should allow to scrape and then import errata from published CentOS lists:

https://github.com/liedekef/spacewalk_scripts

The bootstrap shell script however dies on a syntax error:

[root@spacewalk]# ./centos-clone-errata.sh
./centos-clone-errata.sh: line 73: syntax error near unexpected token `|'
./centos-clone-errata.sh: line 73: `            | sed -n 's|.*"\([^"]*\)".*CentOS-announce\ Digest*|'"$d/\\1|p" '

Open in new window


I've tried manipulating the sed statement several ways but admittedly my sed skills could be better.... can anyone tell me how to fix this issue?
ASKER CERTIFIED SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Try removing the single quote after the word Digest and move the last double quote to just before the last pipe symbol
No comment after 2 weeks and now just closing? How did you fix this? Was there an extra character?
Avatar of Thaidog

ASKER

The first comment worked. Your comment might have worked as well - but as you might be able to discern from no comment in two weeks - I'm extremely busy.