Skip to content
Snippets Groups Projects
Commit 9ad1c574 authored by nieminen's avatar nieminen
Browse files

Simppelimpi regex awk-häksiin.

parent 1b1b93f8
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment