Difference between revisions of "Wc"

From wikieduonline
Jump to navigation Jump to search
Line 4: Line 4:
  
 
<code>[[-m]], [[--chars]]</code>
 
<code>[[-m]], [[--chars]]</code>
 +
 +
echo -n 12050000000 | wc -m
  
 
  [[echo]] yourstringtocountcharacters | tr -d '\n'  | wc -m
 
  [[echo]] yourstringtocountcharacters | tr -d '\n'  | wc -m

Revision as of 16:21, 24 March 2023

wc -l

-m, --chars

echo -n 12050000000 | wc -m
echo yourstringtocountcharacters | tr -d '\n'  | wc -m
echo yourstringtocountcharacters | wc -m
28

Related commands

See also

Advertising: