Note content:L 8.10 Shell special symbol cut command L 8.11 sort_wc_uniq command L 8.12 tee_tr_split command L 8.13 Shell special symbol Note Date:2017.8.168.10 Shell special symbol cut command Special symbols:1.* Any arbitrary character wildcard
I've been writing a script for the last two days and learned three days, then wrote two days of time, feeling OK, also not very difficult, is some things are not ripe, feel the shell inside some processing and C voice difference is quite large, I
One,cut command1,the Cut command is the command to intercept the line. First look at the man in the cut command parameter -b, --bytes=LIST select only these bytes -c, --characters=list
The Cut command is the next powerful tool in the shell, it is a processing object with each behavior, can be a row of strings for a variety of pattern matching cutting operations, you can also operate on a well-organized text, let's say cut this
Introduction
The cut command is a command line program in Unix. The cut command is executed in the unit of action. The cut command processes standard input. Therefore, you can use the pipeline to process the text.Command Format
Cut option...
One or eight basic character interception methods:1. Use the # operator. Removes the first occurrence of the substr left character (including substr) from the left side, preserving the right character.Usage is #*substrFor example:650) this.width=650;
The demand stems from the string processing that adds tag to the blog post: tag to
"," separated, according to this separator separate each tag; In addition, in the habit of users may be typing extra space, so you need to tag the left and right
This is a creation in
Article, where the information may have evolved or changed.
First, the conclusion: The big Golang inside, if an empty string is strings cut through the function of the packet, Split then the result is an array of length 1, the
Cut: Each line of the file cuts bytes, characters, and fields and writes those bytes, characters, and fields to standard output. If you do not specify a File parameter, the Cut command reads standard input. One of the-B,-C, or-f flags must be
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.