Difference between revisions of "Wc"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
 
(8 intermediate revisions by 3 users not shown)
Line 3: Line 3:
 
* https://man7.org/linux/man-pages/man1/wc.1.html
 
* https://man7.org/linux/man-pages/man1/wc.1.html
  
[[-m]], [[--chars]]
+
<code>[[-m]], [[--chars]]</code>
  
  echo yourstringtocountcharacters | wc -m
+
echo -n 12050000000 | wc -m
 +
 
 +
[[echo]] yourstringtocountcharacters | tr -d '\n'  | wc -m
 +
 
 +
  echo yourstringtocountcharacters | [[wc -m]]
 
  28
 
  28
  
 
== Related commands ==
 
== Related commands ==
 
* <code>[[grep]]</code>
 
* <code>[[grep]]</code>
 +
* <code>[[taskset -p]]</code>
 +
* [[Workshop Campaign (WC)]]
  
 
== See also ==
 
== See also ==
 
* {{grep}}
 
* {{grep}}
 
* {{wc}}
 
* {{wc}}
* {{files}}
+
* {{line}}
  
  
 
[[Category:Linux commands]]
 
[[Category:Linux commands]]

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: