2019-09-21 18:56:46 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
echo "path=$(pwd | sed 's/.*\/static/static/')/"
|
|
|
|
|
|
|
|
for var in "$@"
|
|
|
|
do
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo "[$var]"
|
2019-09-24 15:31:21 +02:00
|
|
|
echo "name=$(basename -- "$var" | sed 's/\..*//')"
|
|
|
|
echo "turns=$(wc -l "$var" | sed 's/ .*//')"
|
|
|
|
echo "players=$(grep players "$var" | sed 's/"players"://' | tr -d "{}[]'" | tr ',' ' ')"
|
2019-09-21 18:56:46 +02:00
|
|
|
|
|
|
|
done
|