Difference between revisions of "Wc"

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

Revision as of 16:20, 24 March 2023

wc -l

-m, --chars

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

Related commands

See also

Advertising: