mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
12 lines
349 B
Bash
Executable File
12 lines
349 B
Bash
Executable File
#!/bin/bash
|
|
|
|
ls -1 */results/*.txt | while read file
|
|
do
|
|
SYSTEM=$(echo "$file" | grep -oP '^[\w-]+');
|
|
SETUP=$(echo "$file" | sed -r -e 's/^.*\/([a-zA-Z0-9_.-]+)\.txt$/\1/');
|
|
|
|
echo "{\"system\": \"${SYSTEM}\", \"machine\": \"${SETUP}\", \"time\": \"$(git log -1 --pretty="format:%cs" $file)\", \"result\": [
|
|
$(grep -P '^\[.+\]' $file)
|
|
]},"
|
|
done
|