Last active
January 8, 2023 01:50
-
-
Save FFY00/6a962d3d1624b439b582cc8a0612b22b to your computer and use it in GitHub Desktop.
Pauta Sistemas Operativos - 1ª Prova Prática
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
pdftotext -layout "$@" - | sed -e '/^ [0-9][0-9][0-9][0-9][0-9][0-9]/!d' -e 's|,|\.|g'| awk -F '[[:space:]][[:space:]]+' '{print $6}' | R -e 'd <- density(scan(file("stdin"))); plot(d, main="Notas de SO"); polygon(d, col="red")' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Sample: https://i.imgur.com/orwwOz3.png | |
pdftotext -layout "$@" - | sed '/^ [0-9][0-9][0-9][0-9][0-9][0-9]/!d' | awk -F '[[:space:]][[:space:]]+' '{print $6}' | gnuplot -p -e 'set term png; set output "notas-so.png"; set style fill solid 1.0 noborder; plot "/dev/stdin" using (0.1 * ( floor($1/0.1) + 0.5 )):(1) smooth frequency with boxes' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
pdftotext -layout "$@" - | sed '/^ [0-9][0-9][0-9][0-9][0-9][0-9]/!d' | awk -F '[[:space:]][[:space:]]+' '{print $6}' | gnuplot -p -e 'set style fill solid 1.0 noborder; plot "/dev/stdin" using (0.1 * ( floor($1/0.1) + 0.5 )):(1) smooth frequency with boxes' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
pdftotext -layout "$@" - | sed '/^ [0-9][0-9][0-9][0-9][0-9][0-9]/!d' | awk -F '[[:space:]][[:space:]]+' '{print $6 "\t" $1 "\t" $2}' | sort -g -r |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment