Linux Basics Command--cut

Source: Internet
Author: User

Cut's job is to "cut", specifically in the document is responsible for cutting the data used. Cut is a processing object with each action, and this mechanism is the same as SED


(1) The syntax format is:
Cut [-bn] [file] or cut [-c] [file] or cut [-DF] [file]

Main parameters

-B: Split in bytes. These byte locations will ignore multibyte character boundaries unless the-n flag is also specified.

-C: Split in characters.

-D: Custom delimiter, default is tab.

-F: Used with-D to specify which area to display.


annotations:
cut command cuts bytes, characters, and fields from each line of the file 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 specified.

This article is from the "10858195" blog, please be sure to keep this source http://10868195.blog.51cto.com/10858195/1944139

Linux Basics Command--cut

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.