Linux File processing Tools

Source: Internet
Author: User
Tags control characters

File View commands: Cat, tar, rev

One, cat [option] ... [File] ...

650) this.width=650; "Src=" Https://s5.51cto.com/oss/201711/18/eb62ae74370f5d83b854186cac05fd96.png-wh_500x0-wm_3 -wmp_4-s_3743738152.png "style=" Float:none; "title=" Cat.png "alt=" Eb62ae74370f5d83b854186cac05fd96.png-wh_ "/>

-A: Show all control characters

650) this.width=650; "Src=" Https://s3.51cto.com/oss/201711/18/41f32d01b3e1ffd883fe15898cff131c.png-wh_500x0-wm_3 -wmp_4-s_1522633451.png "style=" Float:none; "title=" Cata.png "alt=" 41f32d01b3e1ffd883fe15898cff131c.png-wh_ "/>

-B: Non-empty line number

650) this.width=650; "Src=" Https://s1.51cto.com/oss/201711/18/01a651e96b7b719db4f87ea5bd37eb56.png-wh_500x0-wm_3 -wmp_4-s_2920580657.png "style=" Float:none; "title=" Catb.png "alt=" 01a651e96b7b719db4f87ea5bd37eb56.png-wh_ "/>

-E: Display line terminator $

650) this.width=650; "Src=" Https://s1.51cto.com/oss/201711/18/5c47e4e947e3a6e0e75c6075e1d282c8.png-wh_500x0-wm_3 -wmp_4-s_2482880701.png "style=" Float:none; "title=" Cate.png "alt=" 5c47e4e947e3a6e0e75c6075e1d282c8.png-wh_ "/>

-N: Numbering each line displayed

650) this.width=650; "Src=" Https://s3.51cto.com/oss/201711/18/678be6e7b4eb7b08c271942100f87e0f.png-wh_500x0-wm_3 -wmp_4-s_1027582784.png "style=" Float:none; "title=" Catn.png "alt=" 678be6e7b4eb7b08c271942100f87e0f.png-wh_ "/>

-S: Compress consecutive blank lines into a row

650) this.width=650; "Src=" Https://s3.51cto.com/oss/201711/18/cbc3f82a2e0166b98a58346682e88832.png-wh_500x0-wm_3 -wmp_4-s_802460784.png "style=" Float:none; "title=" Cats.png "alt=" Cbc3f82a2e0166b98a58346682e88832.png-wh_ "/>

#======================

Reverse display of TAC lines

650) this.width=650; "Src=" Https://s2.51cto.com/oss/201711/18/93014f75d3b36e95c1831e8e1c17722a.png-wh_500x0-wm_3 -wmp_4-s_2081962136.png "title=" Tac.png "alt=" 93014f75d3b36e95c1831e8e1c17722a.png-wh_ "/>

Reverse display of Rev column

650) this.width=650; "Src=" Https://s1.51cto.com/oss/201711/18/b775048e07924ca834b3016f55c60444.png-wh_500x0-wm_3 -wmp_4-s_655620176.png "title=" Rev.png "alt=" B775048e07924ca834b3016f55c60444.png-wh_ "/>

NL Add line number equals Cat-b F2

650) this.width=650; "Src=" Https://s1.51cto.com/oss/201711/18/c8572f5d68df6b6a5712198b65021c95.png-wh_500x0-wm_3 -wmp_4-s_2741577468.png "title=" Nl.png "style=" float:left; "alt=" C8572f5d68df6b6a5712198b65021c95.png-wh_ "/>





This article from "Linux-mylog" blog, declined reprint!

Linux File processing Tools

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.