diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2012-06-27 16:49:30 +0200 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2012-06-27 16:49:30 +0200 |
commit | 5f72fa08776eacb77a3d18e22d131d12fc7248b8 (patch) | |
tree | bb6406f00e26ae6c67a7e35ab20abd2f02e50641 | |
parent | b0395c4349a107f08d5de989d9012531ca9c7698 (diff) | |
download | watch-bz-5f72fa08776eacb77a3d18e22d131d12fc7248b8.tar.gz watch-bz-5f72fa08776eacb77a3d18e22d131d12fc7248b8.tar.xz watch-bz-5f72fa08776eacb77a3d18e22d131d12fc7248b8.zip |
nicer sed commands
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
-rwxr-xr-x | watch-bz | 50 |
1 files changed, 25 insertions, 25 deletions
@@ -64,31 +64,31 @@ fi watch -t --interval $REFRESH_INTERVAL --differences=cumulative \ "$BUGZILLA query -c $COMPONENT -t $STATUS --outputformat $OUTPUT_FMT \ | sed -u \ - -e \"s/${SEP}Red Hat Enterprise Linux /${SEP}EL/\" \ - -e \"s/${SEP}Fedora/${SEP} F /\" \ - -e \"s/${SEP}NEW/${SEP}N/\" \ - -e \"s/${SEP}ASSIGNED/${SEP}A/\" \ - -e \"s/${SEP}POST/${SEP}P/\" \ - -e \"s/${SEP}MODIFIED/${SEP}M/\" \ - -e \"s/${SEP}ON_QA/${SEP}Q/\" \ - -e \"s/${SEP}ON_DEV/${SEP}D/\" \ - -e \"s/${SEP}VERIFIED/${SEP}V/\" \ - -e \"s/${SEP}RELEASE_PENDING/${SEP}R/\" \ - -e \"s/${SEP}CLOSED/${SEP}C/\" \ - -e \"s/${SEP}urgent/${SEP}!!!/\" \ - -e \"s/${SEP}high/${SEP}!!/\" \ - -e \"s/${SEP}medium/${SEP} ! /\" \ - -e \"s/${SEP}low/${SEP} ~ /\" \ - -e \"s/${SEP}unspecified/${SEP} ? /\" \ - -e \"s/qa_ack/QA/\" \ - -e \"s/pm_ack/PM/\" \ - -e \"s/devel_ack/D/\" \ - -e \"s/needinfo/I/\" \ - -e \"s/exception/E/\" \ - -e \"s/blocker/BL/\" \ - -e \"s/requires_release_note/RN/\" \ - -e \"s/rhel-//\" \ - -e \"s/None//\" \ + -e \"s|${SEP}Red Hat Enterprise Linux |${SEP}EL|\" \ + -e \"s|${SEP}Fedora|${SEP} F |\" \ + -e \"s|${SEP}NEW|${SEP}N|\" \ + -e \"s|${SEP}ASSIGNED|${SEP}A|\" \ + -e \"s|${SEP}POST|${SEP}P|\" \ + -e \"s|${SEP}MODIFIED|${SEP}M|\" \ + -e \"s|${SEP}ON_QA|${SEP}Q|\" \ + -e \"s|${SEP}ON_DEV|${SEP}D|\" \ + -e \"s|${SEP}VERIFIED|${SEP}V|\" \ + -e \"s|${SEP}RELEASE_PENDING|${SEP}R|\" \ + -e \"s|${SEP}CLOSED|${SEP}C|\" \ + -e \"s|${SEP}urgent|${SEP}!!!|\" \ + -e \"s|${SEP}high|${SEP}!!|\" \ + -e \"s|${SEP}medium|${SEP} ! |\" \ + -e \"s|${SEP}low|${SEP} ~ |\" \ + -e \"s|${SEP}unspecified|${SEP} ? |\" \ + -e \"s|qa_ack|QA|\" \ + -e \"s|pm_ack|PM|\" \ + -e \"s|devel_ack|D|\" \ + -e \"s|needinfo|I|\" \ + -e \"s|exception|E|\" \ + -e \"s|blocker|BL|\" \ + -e \"s|requires_release_note|RN|\" \ + -e \"s|rhel-||\" \ + -e \"s|None||\" \ | ${HERE}/table-data $SEP | cut -c-$WIDTH" # todo: colours for priorities (rhbz#801626) #-e 's/\(urgent\)/\^\[\[31m\1\^\[\[0m/' \ |