From 0282c4ea9642b0b5516b4e797246e1a0fd9a4a05 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sun, 8 Jan 2023 22:09:26 +0100 Subject: [PATCH] Update weekly_stats.yaml --- .github/workflows/weekly_stats.yaml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/weekly_stats.yaml b/.github/workflows/weekly_stats.yaml index 7548623b1..c22dcfb9e 100644 --- a/.github/workflows/weekly_stats.yaml +++ b/.github/workflows/weekly_stats.yaml @@ -107,12 +107,10 @@ jobs: uses: actions/checkout@v3 - name: Create stats run: | - printf "$(cats Stats)" \ - | awk '{for(i=NF;i>1;i--)printf "%s ",$i;printf "%s",$1;print ""}' > Stats3 - head -n 2 Stats3 > Stats3 - cat Stats3 + cp Stats Stats3 + gawk -i inplace '{for(i=NF;i>1;i--)printf "%s ",$i;printf "%s",$1;print ""}' Stats3 + echo "$(head -n 2 Stats3)" > Stats3 sudo apt-get install gnuplot -y - echo "installed" N=`awk 'NR==1 {print NF}' Stats3` plot for [i=2:N] "Stats3" u 1:i set term png