Deuxième partie : collocations

Afficher les lignes de texte dans une fenêtre de 4 mots contenant

cat corpus/duchn-2.txt | egrep -e "aristocrate_" -A 2 -B 2 > collocations-aristocrate.txt
cat corpus/duchn-2.txt | egrep -e "-culotte_" -A 2 -B 3 > collocations-sans-culotte.txt
cat corpus/duchn-2.txt | egrep -e "femme_" -A 2 -B 2 > collocations-femme.txt
cat corpus/duchn-2.txt | egrep -e "république_" -A 2 -B 2 > collocations-république.txt
cat corpus/duchn-2.txt | egrep -e "peuple_" -A 2 -B 2 > collocations-peuple.txt