输入:
FilePath Filename Probability ClassifierID HectorFileType LibmagicFileType
/mnt/Hector/Data/benign/binary/benign-pete/ 01d0cd964020a1f498c601f9801742c1 19 S040PDFv02 data.pdf PDF document
/mnt/Hector/Data/benign/binary/benign-pete/ 0299a1771587043b232f760cbedbb5b7 0 S040PDFv02 data.pdf PDF document
尝试将 2 个命令合并在一起,因此它将拆分文件,并且在拆分文件中仅显示文件路径和分类器 ID ($1,$2)
awk '{ print >> $5.txt }' < output.txt
awk -v OFS="," 'NR>1 {print $1,$2}'
-谢谢你