NAME colrm命令也算shell中比較常見的命令,用法比較簡單從指定的文件移除或過濾指定的列。 SYNOPSIS colrm [startcol [endcol ] ] DESCRIPTION Colrm命令能從一個文件中移除指定的列,從一個標(biāo)準(zhǔn)的input文件中提供輸入,輸出同樣為標(biāo)準(zhǔn)輸出. EXAMPLE 假如: 文件:text.file 內(nèi)容:123456789 例1. $ colrm 4 < test.file 那么test.file中的內(nèi)容為: 123 #從第四列開始全部移除 例2. $ colrm 4 6 < test.file 那么test.file中的內(nèi)容為: 123789 #移除第四列到第六 例3. $ colrm 4 6 < test.file >test.file1 將test.file中移除后的文件,輸出到test.file1 123789 |