Highlight score.
This commit is contained in:
parent
f5bfd586ae
commit
d34236e105
10
schedule.sh
10
schedule.sh
@ -4,6 +4,9 @@ myname=iVS
|
|||||||
repo=fat0troll/lorchess
|
repo=fat0troll/lorchess
|
||||||
tournament=autumn2013
|
tournament=autumn2013
|
||||||
|
|
||||||
|
# Variables
|
||||||
|
score='\(0\|1\|0\.5\):\(0\|1\|0\.5\)'
|
||||||
|
|
||||||
# Colors
|
# Colors
|
||||||
green='\\033[01;32m'
|
green='\\033[01;32m'
|
||||||
red='\\033[01;31m'
|
red='\\033[01;31m'
|
||||||
@ -34,8 +37,9 @@ for tour in $@; do
|
|||||||
|
|
||||||
echo ">>>"
|
echo ">>>"
|
||||||
curl -q --silent $url | egrep "Тур|Время|$name" | while read line;do
|
curl -q --silent $url | egrep "Тур|Время|$name" | while read line;do
|
||||||
# Colorize the player name
|
# Colorize output
|
||||||
output=$(echo $line | sed "s/${name}/${red}${name}${restore}/g")
|
line=$(echo $line | sed "s/${score}/${green}\0${restore}/g")
|
||||||
echo -e $output
|
line=$(echo $line | sed "s/${name}/${red}\0${restore}/g")
|
||||||
|
echo -e $line
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user