Difference between revisions of "Wc"

From wikieduonline
Jump to navigation Jump to search
 
(3 intermediate revisions by 2 users not shown)
Line 5: Line 5:
 
<code>[[-m]], [[--chars]]</code>
 
<code>[[-m]], [[--chars]]</code>
  
  echo yourstringtocountcharacters | tr -d '\n'  | wc -m
+
  echo -n 12050000000 | wc -m
 +
 
 +
[[echo]] yourstringtocountcharacters | tr -d '\n'  | wc -m
  
 
  echo yourstringtocountcharacters | [[wc -m]]
 
  echo yourstringtocountcharacters | [[wc -m]]
Line 12: Line 14:
 
== Related commands ==
 
== Related commands ==
 
* <code>[[grep]]</code>
 
* <code>[[grep]]</code>
* [[taskset -p]]
+
* <code>[[taskset -p]]</code>
 +
* [[Workshop Campaign (WC)]]
  
 
== See also ==
 
== See also ==

Latest revision as of 10:50, 1 August 2023

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]

Advertising: