Linux Command Encyclopedia file management: Cat

Source: Internet
Author: User
Keywords Linux file management command encyclopedia
Tags basic cat command encyclopedia connect file file management help linux

Use Rights: All users
Use mode: Cat [-ABEENSTTUV] [--help] [--version] FileName
Description: Connect the file string to the basic output (screen or add > FileName to another file)
Parameters:
-N or--number the number of rows for all outputs starting with 1
-B or--number-nonblank and-n are similar, except for blank lines not numbered
-S or--squeeze-blank is substituted for a line of blank lines when a blank line with two consecutive lines is encountered
-V or--show-nonprinting
Example:
Cat-n textfile1 > Textfile2 the textfile1 file with the line number and enter textfile2 this file
Cat-b textfile1 textfile2 >> Textfile3 appends the contents of Textfile1 and Textfile2 files to Textfile3 after adding line numbers (blank lines).

Related Article

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.