linux命令-cat

cat :concatenate files and print on the standard output :鏈接文件並標準打印輸出,通常用於查看文件內容

cat選項:

    -E ,--show-ends:display $ at end of each line :查看文件內容並每行以$結尾

    -n ,--number  :number all output lines :每行用數字標註

cat file1 file2  :將file1與file2串接打印


cat >filename << EOF  

EOF

EOF:end of file  ;此法可以創建文件,創建的文件必須是沒有的新文件



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章