Skip to main content

sniff

The sniff command detects the delimiter, quote character, and other properties of a CSV file.

Syntax

qsv sniff [options] <input_file>

Description

The sniff command is used to detect the delimiter, quote character, and other properties of a CSV file. This is useful for understanding the structure of a dataset.

Options

  • --no-headers: When set, the first row will not be interpreted as headers

Examples

Detect Properties

Detect the properties of a CSV file:

qsv sniff DLD_Transactions_English_500.csv

Common Use Cases

  • Understanding the structure of a dataset
  • Preparing data for analysis or processing

Tips

  • Verify the output to ensure the properties are correctly detected
  • Use in combination with other commands for complex data processing

See Also

  • select - for selecting specific columns
  • apply - for data transformations