Analyzing a text and copy lines


#1

Hello, I am beginner in Python and I have a text (its content:https://rules.emergingthreats.net/open/suricata-4.0/rules/compromised.rulesand I would like to analyze the classtype that satisfies a condition.

I get all the classtype's values in an array but I don't know how to copy all the lines that satisfies the condition. Any help or clue?


#2

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.