linux cut 命令提取指定列

提取 第2列至最后一列

  1. cut -f 2- file

提取 第1列,第3列,第5列

  1. cut -f 1,3,5 file

提取 提取第2列以外的所有列

  1. cut -f 2 --complement file