This commit is contained in:
Arthur Yunusov 2013-11-08 16:13:14 +06:00
commit c77f322e34
3 changed files with 22 additions and 1 deletions

View File

@ -94,6 +94,7 @@
lor: farzeet
lichess: farzeet
elo: 1105
status: withdrew
- number: 20
lor: MyTrooName

View File

@ -767,6 +767,11 @@
black: darkenshvein
result: '1:0'
- date: 07.11.2013
white: redgremlin
black: J
result: '1:0'
- date: 02.11.2013
white: Magian
black: aptyp
@ -814,6 +819,16 @@
black: Magian
result: '0:1'
- date: 07.11.2013
white: Michkova
black: redgremlin
result: '0:1'
- date: 06.11.2013
white: darkenshvein
black: Nokman
result: '0:1'
- date: 02.11.2013
white: iVS
black: Nedis
@ -831,6 +846,11 @@
black: darkenshvein
result: '1:0'
- date: 07.11.2013
white: Genuine
black: J
result: '1:0'
- date: 31.10.2013
white: LongLiveUbuntu
black: aptyp

View File

@ -38,7 +38,7 @@ for dir in "${tour_dirs[@]}"; do
# Parsed data of game: date a[1], white player a[2], black
# player a[6], and the result a[3]
data=( $(echo "$line" | gawk --re-interval \
'match($0, /'${date}' — '${white}' '${result}' '${black}'/, a) \
'match($0, /'${date}' [-] '${white}' '${result}' '${black}'/, a) \
{ print a[1], a[2], a[6], a[3] }') )
if [[ ${#data[@]} != 0 ]]; then