# CSV Output Filtering - [Python Regular Expressions](Python-Regular-Expressions) Search function - [Definitions](#definitions) - [Quoting rules](#quoting-rules) - [Column header filtering](#column-header-filtering) - [Column row filtering](#column-row-filtering) - [Field names](#field-names) - [Inclusive filters](#inclusive-filters) - [Exclusive filters](#exclusive-filters) - [Matches](#matches) - [Column row limiting](#column-row-limiting) - [Saving filters in gam.cfg](#saving-filters-in-gamcfg) There are seven values in `gam.cfg` that can be used to filter the output from `gam print` commands. * `csv_output_header_filter` - A list of `` used to select specific column headers to include * `csv_output_header_drop_filter` - A list of `` used to select specific column headers to exclude * `csv_output_header_force` - A list of used to specify the exact column headers to include * `csv_output_header_order` - A list of used to specify the column header order; any headers in the file but not in the list will appear after the headers in the list. * `csv_output_row_filter` - A list or JSON dictionary used to include specific rows based on column values * `csv_output_row_drop_filter` - A list or JSON dictionary used to exclude specific rows based on column values * `csv_output_row_limit` - A limit on the number of rows written The original implementation required that row filters be expressed in JSON notation; these are almost impossible to enter correctly in Windows; on Mac OS or Linux, it's easy. You can now enter the row filters as lists on all platforms. ## Definitions [Data Selectors](Collections-of-items) ``` ::= | | ``` ``` ::= -- | (+|-)(d|w|y) | never| today