diff --git a/tools/process.bash b/tools/process.bash index 9041b6d..4193331 100755 --- a/tools/process.bash +++ b/tools/process.bash @@ -1,5 +1,5 @@ !#/bin/bash -cat students.json | jq -c '.Zaci[]|{id: .PkZak, name: .Jmeno, surname: .Prijmeni }' | while read line; do +cat students.json | jq -c '.Zaci[]| select(.AktivniEvidence == true) |{id: .PkZak, name: .Jmeno, surname: .Prijmeni }' | while read line; do id=$(echo $line | jq -r '.id') name=$(echo $line | jq -r '.name') surname=$(echo $line | jq -r '.surname')