bash - Split file based on text inside file -


i'm trying have file split other files. take of lines "data.pdf" in input file , make text file called data.pdf.txt

the data trying have split in column 5 below.

input:

/mnt/hector/data/benign/binary/benign-pete/ d16feafae3adf1ee0f77e6a84a476b18    0   s043guiv02  code.bin.pe32.gui   pe32 executable ms windows (gui) intel 80386 32-bit /mnt/hector/data/benign/binary/benign-pete/ e9f6b4a413ed42987e1bfff13954faaa    0   s043guiv02  code.bin.pe32.gui   pe32 executable ms windows (gui) intel 80386 32-bit /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 

thanks have been stuck on , cannot correctly

awk '{ print >> $5.txt }' < input.txt 

Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -