unix cat命令

來源:互聯網
上載者:User

標籤:使用   sp   for   strong   on   檔案   bs   nbsp   br   

[文法]:     cat [-u] [-s] [-v[-t] [-e]] 檔案...


[說明]:     顯示和串連一個或多個檔案至標準輸出
-u    無緩衝的輸出(預設為有緩衝輸出)
-s    對不存在的檔案不作提示
-v    顯示出檔案中的非列印字元,控制字元顯示成^n ,n為八位元字,其他非列印字元顯示成M-x , x 為該字元低7位的8進位數值
-t    在使用-v 選項時,將定位字元(tab) 顯示成 ^I,將換頁符(formfeed)顯示成 ^ L
-e     在使用-v 選項時,在每一行的行尾顯示 $


[例子]:
cat  file      顯示檔案
cat   -s -v -e  file1  file2   file3  逐個顯示檔案 file1 file2 file3

unix cat命令

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.