Wc [word count]
Name wc-print the number of newlines, words, andbytes (word count)
In files
Syntax wc [option] files
Function Description: counts the number of characters in the number of bytes in a specified file. If no file is specified, it is
Address: http://cicikasa.blog.163.com/blog/static/13757535520101264115249/
The WC command of Linux is usually used together with other commands to calculate the line and other information.In Linux, WC is used for counting. The number of lines,
Let me briefly introduce
The function of the WC (Word Count) command is to count the number of bytes, words, and rows in the specified file and display the statistics to output
Format: WC file
Command parameters:
-C counts the number of bytes (bytes)
The wc (WordCount) command is used to count the file content information, including the number of lines and characters. [python] viewplaincopy # displays the file content information. the output information is the number of lines, number of words,
one, thecat command1, optional parameters-A,--show-all equivalent to -vet-B,--number-nonblank number of non-null output lines-e equivalent to -ve-E,--show-ends displays at the end of each line-N,--number all line numbers for the
The WC is used for counting under Linux. Returns the number of rows, words, bytes, and so on in the file.
For example:
The code is as follows:
WC Wc1.txt
3 5 Wc1.txt
Output information in order: number of rows number of bytes file name. More
Let's introduce brieflyWC (Word Count) The function of the command is to count the number of bytes, words, and lines in the specified file, and to display the output of the statistic resultsformat: WC fileCommand parameters:- C Statistics Bytes
Cut: Intercepting text-specific fieldsNAMECut-remove sections from all line of files-D,--delimiter=delim (Specify field delimiter, default is space)Use DELIM instead of the TAB for field delimiter-F,--fields=list (Specifies the field to
This original article belongs to "Linux greenhouse" blog, the blog address is http://roclinux.cn. The author of the article is rocrocket.In order to prevent the vicious reproduction of some websites, special in each article before adding this
The wc (Word Count) command is used to Count the file content, including the number of lines and characters.[Python] view plaincopy
# Display file content information. The output information is the number of lines, number of words, number of
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.