wc -l
-m, --chars
echo -n 12050000000 | wc -m
echo yourstringtocountcharacters | tr -d '\n' | wc -m
echo yourstringtocountcharacters | wc -m
28
Related commands[edit]
See also[edit]
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