"Linux" character conversion command paste

Source: Internet
Author: User

This paste is going to be a lot easier than join ! Relative to the join must be more than two files of data dependency, paste directly " put two lines together, and the middle of the [tab] key separated " just! Simple way to use:

[email protected] ~]# paste [-d] file1 file2 options and Parameters:-D: The delimiter character can be followed. The default is delimited by [tab]! -: IffilePart written-that represents the meaning of the data from standard input. Example one: to/etc/passwdand/etc/shadow with the same line [email protected]~]# paste/etc/passwd/etc/shadowbin:x:1:1: Bin:/bin:/sbin/nologin bin:*:14126:0:99999:7: ::d aemon:x:2:2:d Aemon:/sbin:/sbin/nologin daemon:*:14126:0:99999:7:: : adm:x:3:4: Adm:/var/adm:/sbin/nologin adm:*:14126:0:99999:7::: # Note Oh! The middle of the same line is separated by the [tab] key! Example two: the first/etc/group read out (withCat), and then stick together with the example! And only the first three lines are removed [[email protected]~]#Cat/etc/group|paste/etc/passwd/etc/shadow-|Head-N3# The focus of this example is on that-The use! That stuff always stands for stdin Oh!

  Reference:http://vbird.dic.ksu.edu.tw/linux_basic/0320bash.php#paste

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.