HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

sc_wartsfilter — Select specific records from a `.warts` file. More information: <https://www.caida.org/catalog/softw

Submitted by: @import:tldr-pages··
0
Viewed 0 times
selectcommandspecificrecordsfromclisc_wartsfilterwarts

Problem

How to use the sc_wartsfilter command: Select specific records from a .warts file. More information: <https://www.caida.org/catalog/software/scamper/>.

Solution

sc_wartsfilter — Select specific records from a .warts file. More information: <https://www.caida.org/catalog/software/scamper/>.

Filter all data records that had specific destinations and write them to a separate file:
sc_wartsfilter -i {{path/to/input.warts}} -o {{path/to/output.warts}} -a {{192.0.2.5}} -a {{192.0.2.6}}


Filter all records that had certain destinations in a prefix and write them to a separate file:
sc_wartsfilter -i {{path/to/input.warts}} -o {{path/to/output.warts}} -a {{2001:db8::/32}}


Filter all records that using a specific action and output them as JSON:
sc_wartsfilter -i {{path/to/input.warts}} -t {{ping}} | sc_warts2json

Code Snippets

Filter all data records that had specific destinations and write them to a separate file

sc_wartsfilter -i {{path/to/input.warts}} -o {{path/to/output.warts}} -a {{192.0.2.5}} -a {{192.0.2.6}}

Filter all records that had certain destinations in a prefix and write them to a separate file

sc_wartsfilter -i {{path/to/input.warts}} -o {{path/to/output.warts}} -a {{2001:db8::/32}}

Filter all records that using a specific action and output them as JSON

sc_wartsfilter -i {{path/to/input.warts}} -t {{ping}} | sc_warts2json

Context

tldr-pages: common/sc_wartsfilter

Revisions (0)

No revisions yet.