From 9ad1c574faf9bbc487fa53edc7713dbfb7c94634 Mon Sep 17 00:00:00 2001 From: Paavo Nieminen <paavo.j.nieminen@jyu.fi> Date: Tue, 18 Mar 2025 20:04:59 +0200 Subject: [PATCH] =?UTF-8?q?Simppelimpi=20regex=20awk-h=C3=A4ksiin.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools_for_authors/skriptiesim.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools_for_authors/skriptiesim.sh b/tools_for_authors/skriptiesim.sh index 9c39089..ce18a4c 100644 --- a/tools_for_authors/skriptiesim.sh +++ b/tools_for_authors/skriptiesim.sh @@ -54,7 +54,7 @@ GAMMAVALUE=3 # 35 riviä dataa. Se mitä menee läpi, ohjataan tekstitiedostoon: dd if=/dev/urandom | od -An -t x1 | fold -w 3 | \ - awk '/[0-7][:alnum:]/ {printf "0" } /[89a-f][:alnum:]/ {printf "1"}' | \ + awk '/[0-7]./ {printf "0" } /[89a-f]./ {printf "1"}' | \ fold -w 128 | head -35 > rndbits.txt # Sen jälkeen käytellään ImageMagick -ohjelmistopaketin palveluita -- GitLab