Linux Character Conversion instructions

Source: Internet
Author: User

1.tr [-ds] SET1 ... : Can be used to delete text in a message, or to convert text messages, parameters:

1)-D: Delete message SET1 this string

2)-S: Replace duplicate string

Requires two strings or regular expressions, with no arguments, to perform a substitution operation, corresponding to the source string and the replacement string, respectively

2.col [-xfb][-l Buffer list]: Filter control characters, parameters,

1)-X: Converts the TAB key to the equivalent SPACEBAR (tested, the directive does not find its effect)

2)-B: When there is a backslash in the text, only the last character of the backslash is preserved, and the symbol for the special table key is removed.

3.join [-ti12] file1 file2: Merging two files, parameters:

1)-t:join partition data by default with a space character, and compare the data of "first field"

2)-I: Ignore case differences

3)-1: This is the number 1, which field will be used to analyze the first file

4)-2: Which field will be used to analyze the second file

4.paste [-d] file1 file2: Paste two files directly together, in the Middle with TAB key separated, parameters,

1)-D: Can be followed by a delimiter, the default tab to split

2)-: If the file section is written--representing data from standard input

5.expand [-T] File: To change the TAB key to a space, in general, a tab will be replaced with 8 space bar, we can customize the number (by setting the number after-T).

6.split [-BL] file PREFIX: Split file, Parameters:

1)-B: Back can be divided into the file size, you can add units, for example, B, k,m, etc.

2)-L: Split by number of rows

3) PREFIX: Represents the preamble meaning, can be used as the leading text of the split file

If you need to take data from a standard input, you can also use "-" instead of file.


This article is from "Tiger Brother's Blog" blog, please be sure to keep this source http://7613577.blog.51cto.com/7603577/1596101

Linux Character Conversion instructions

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.