Getting Started with Linux Basics--06

Source: Internet
Author: User

Simple Text Processing

Experiment Introduction

In this section we will introduce these commands: TR, col, join, paste

1.tr:

-D: Delete and Set1 match characters, not whole word match or match in character order

-S: Removes the specified consecutive and repeated characters

2.col:

Turn the TAB key to an equal number of spaces, or reverse the operation.

-X: Convert tab to space

-H: Turn a space into tab

3.join:

Merge the same line that contains the same content in two files

-T: Specifies the delimiter, the default is a space

-I: Ignore case differences

-1: Indicate which field to use for the first file to compare

-2: Indicate which field to use for the first file to compare

4.paste:

Merge files without comparison

Getting Started with Linux Basics--06

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.