第一章:文件管理(第九天)

1、文件管理

1.9、cut

1.9.1、命令解讀

顯示每行從開頭算起 num1 到 num2 的文字。 

cut -cnum1-num2 filename 

linux>> cat example 
        
        test1
        this is test1 
        
linux>> cut -c0-6 example       ## print 開頭算起前6個字符 
        
        test1
        this i  

 

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