Use 'sed -n' instead of implicit line removal.
This commit is contained in:
parent
b2d4d1df00
commit
4056d1996b
@ -336,9 +336,9 @@ main() {
|
||||
local bn cbn
|
||||
for bn in ${bns}; do
|
||||
cbn=#${WHITE}${bn}${NORMAL}
|
||||
wget -q http://bugs.gentoo.org/show_bug.cgi?id=${bn} -O - \
|
||||
| sed -e "s, *<title>Gentoo Bug \([0-9]*\) - \(.*\)</title>,Bug ${cbn}: ${BGREEN}\2${RESET},p" \
|
||||
-e "s, *<title>Gentoo \(Invalid Bug ID\)</title>,Bug ${cbn}: ${YELLOW}!! \1${RESET},p" -e d
|
||||
wget -q http://bugs.gentoo.org/show_bug.cgi?id=${bn} -O - | sed -n \
|
||||
-e "s, *<title>Gentoo Bug \([0-9]*\) - \(.*\)</title>,Bug ${cbn}: ${BGREEN}\2${RESET},p" \
|
||||
-e "s, *<title>Gentoo \(Invalid Bug ID\)</title>,Bug ${cbn}: ${YELLOW}!! \1${RESET},p"
|
||||
done
|
||||
echo
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user