From 2cad1ce3ab7dd7982cf1bef286215338d6eb22f4 Mon Sep 17 00:00:00 2001 From: vonavi Date: Fri, 8 Nov 2013 10:06:41 +0200 Subject: [PATCH] Fix 'tour-parse' script. --- tour-parse | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tour-parse b/tour-parse index 84ef7ab..57fb655 100755 --- a/tour-parse +++ b/tour-parse @@ -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