wc -l
-m, --chars
echo yourstringtocountcharacters | wc -m
28
Related commands
See also
ack, ag, grep
, egrep, fgrep
, agrep
, ngrep
, pgrep
, awk
, sed
, strings
, tr
, tail
, mtail
, git grep
, wc
, uniq
, LogQL
, findstr (Windows)
, rg, git-grep, cut
wc
, wc -l
line
, newline
, characters
, wc, column
, Add line, Concatenate lines, Ansible: lineinfile, rpl, sed -i