15,049
edits
(Created page with "Count number of characters in different approaches == BASH == Step1: Using [https://www.computerhope.com/unix/uwc.htm Linux wc command] <pre> # print the character counts of...") |
mNo edit summary |
||
| Line 4: | Line 4: | ||
Step1: Using [https://www.computerhope.com/unix/uwc.htm Linux wc command] | Step1: Using [https://www.computerhope.com/unix/uwc.htm Linux wc command] | ||
<pre> | <pre> | ||
# print the character counts of txt files ( | # print the character counts of txt files (contains the count of return symbol) | ||
wc -m *.txt | wc -m *.txt | ||
| Line 15: | Line 15: | ||
Step3: | Step3: | ||
number of characters = result of {{kbd | key=<nowiki>wc -m *.txt</nowiki>}} - result of {{kbd | key=<nowiki>wc -m *.txt</nowiki>}} * 2 - 1 (the last blank line costs 1 character) | number of characters (not contains the [[Return symbol | return symbol]]) = result of {{kbd | key=<nowiki>wc -m *.txt</nowiki>}} - result of {{kbd | key=<nowiki>wc -m *.txt</nowiki>}} * 2 - 1 (the last blank line costs 1 character) | ||
[[Category:Software]] [[Category:Programming]] [[Category:Data Science]] [[Category:Text file processing]] [[Category:Data transformation]] | [[Category:Software]] [[Category:Programming]] [[Category:Data Science]] [[Category:Text file processing]] [[Category:Data transformation]] | ||