Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save glefait/6359a43c8be193631ab9029372f3e16c to your computer and use it in GitHub Desktop.
Save glefait/6359a43c8be193631ab9029372f3e16c to your computer and use it in GitHub Desktop.
Vérifie la pertinence d'un tweet de Marajo https://twitter.com/EDDIEMARAJO/status/1515495843797037058
# download the file
curl https://www.data.gouv.fr/fr/datasets/r/d5f400de-ae3f-4966-8cb6-a85c70c6c24a -L -o rne-CM.csv
# create the histogram with gnuplot
cut -f5- rne-cm.csv \
| grep -P "^972" \
| fgrep '1er' \
| cut -f3 \
| cut -c 1 \
| sort | uniq -c \
| gnuplot -p -e "set key off; set ylabel 'Nombre'; set yrange [0:];
set xlabel 'Première lettre du nom';
set title 'Première lettre du 1er adjoint en Martinique';
set style data histogram;set terminal png truecolor; set term png;
set output 'histogram-1er-adjoint-mq.png';
plot '-' using 1:xtic(2)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment