Process portion of file -bash
before processing data:
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
/mnt/Hector/Data/benign/binary/benign-pete/ 02a3f29050abd76f8d5dbe5972dff932
after running the code below:
S036GDLv02 1
S040PDFv02 218
S043GUIv02 11
S046CONv02 1
I would like to specify the lines of code that I want this to run through:
for i in input.txt;
do cut -f 4 input.txt|sort| uniq -c | awk '{print $2, $1}' | sed 1d >>
output.txt; done
I want to create a script where I could tell it to run that code through
10 lines for example and have it output it to a file output.txt. is that
possible to do and what would be the best way to do it? thank you
No comments:
Post a Comment