Is it possible to use wc to count the chars of each line instead of the total amount of chars?
echo -e foo\\nbar\\nbazz | grep -i ba
So why doesn't
echo -e foo\\nbar\\nbazz | grep ba | wc -m
return a list of the lengths of those words? (3 and 4)
P.S.: why are linefeeds counted with
wc -m ?
wc -l counts the newlines, so why should
wc -m count them too?