diff --git a/osx/wc.md b/osx/wc.md new file mode 100644 index 0000000000..90c2842098 --- /dev/null +++ b/osx/wc.md @@ -0,0 +1,16 @@ +# wc + +> Count words, bytes, or lines + +- count lines in file + +`wc -l {{file}}` + +- count bytes in file + +`wc -c {{file}}` + +- count characters in file (taking multi-byte character sets into account) + +`wc -m {{file}}` +