# DSL filter statements

You can use the `filter` DSL keyword within the `put` verb. In fact, the following two are synonymous:

GENMD-RUN-COMMAND
mlr --csv filter 'NR==2 || NR==3' example.csv
GENMD-EOF

GENMD-RUN-COMMAND
mlr --csv put 'filter NR==2 || NR==3' example.csv
GENMD-EOF

The former is a little easier to type. For another example:

GENMD-RUN-COMMAND
mlr --csv put '@running_sum += $quantity; filter @running_sum > 500' example.csv
GENMD-EOF

GENMD-RUN-COMMAND
mlr --csv filter '@running_sum += $quantity; @running_sum > 500' example.csv
GENMD-EOF
