Text Processing3 / 18
Up next

wc -l and -w

#!/usr/bin/env bash

# -l counts lines
printf '%s\n' "one two" "three four five" | wc -l
# -w counts words
printf '%s\n' "one two" "three four five" | wc -w 
What you're solving

count lines and words