This commit is contained in:
Miloslav Ciz 2024-03-31 20:21:22 +02:00
parent 6c86f68253
commit 491c5ff885
17 changed files with 1836 additions and 1764 deletions

View file

@ -22,6 +22,12 @@ cat *.md | wc -l >> $FILE_NAME
printf -- "- number of script lines: " >> $FILE_NAME
cat *.sh | wc -l >> $FILE_NAME
printf -- "- occurences of the word \"person\": " >> $FILE_NAME
grep -o -i "person[s \n\.,]" *.md | wc -l >> $FILE_NAME
printf -- "- occurences of the word \"nigger\": " >> $FILE_NAME
grep -o -i "[^\[]nigger" *.md | wc -l >> $FILE_NAME
printf "\nlongest articles:\n\n" >> $FILE_NAME
ls -1hSs *.md | head -n 20 | sed "s/ *\([^ ]*\) \+\([^ ]*\)\.md/- [\2](\2.md): \1/g" >> $FILE_NAME
printf "\n" >> $FILE_NAME