计算这两个日期之间的差(以分钟为单位),然后使用您所输入的单词数(由中间的命令输出)除以这个值,以得到平均每分钟输入的单词数。
Take the difference in minutes between the two dates and divide by the number of words you typed (which is output by the middle command) to get the average number of words per minute you type.
例如,如果您仅希望计算该目录下的前5个文本文件的单词数,那么可以使用竖线(|)将wc和head命令连接起来。
For example, if you want to count only the words in the first five text files in the directory, you can use a pipe (|) to hook the wc and head commands together.
我获得了字符计数(计算字符串长度)和单词数(使用空格将字符串断开并计算结果)。
I can get the character count (from the string length) and the word count (by splitting the string by Spaces and counting the results).
应用推荐