Note to Self Mac Os Terminal Word Count

Count the number of lines, words, and characters of a text file, mac.

wc will give you counts for print newline, word, and byte for a specified file. You can see the explainshell entry here, wc explained.

wc -l <text_file>

w: words c: characters

Total number of files on directory:

ls -l *.pdf | wc -l
tail -600000 <source_file> | tr '\t' ',' | cut -d, -f-12 > <output_file> 
head -10000 <source_file> | tr '\t' ',' | cut -d, -f-12 > <output_file> 
cat <source_file> | tr '\t' ',' | cut -d, -f-12 > <output_file>