Thaidog
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:
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?
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" '
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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?
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.