Forrest logo
tool overview
On this page you find all important commands for the CLI tool csvcut. If the command you are looking for is missing please ask our AI.

csvcut

csvcut is a command line tool used for manipulating and analyzing CSV (Comma Separated Values) files. It allows you to extract specific columns from a CSV file and perform various actions such as filtering rows based on certain conditions, reordering columns, removing duplicates, and printing certain rows or columns.

Some key features of csvcut include:

  1. Column selection: You can select specific columns from a CSV file using either the column name or index.

  2. Column reordering: csvcut allows you to rearrange the order of columns in the output file.

  3. Filtering: You can filter rows based on specific conditions using operators like equals, greater than, less than, etc.

  4. Column searching: csvcut enables you to search for specific values or patterns within a column.

  5. Duplicates removal: It can remove duplicate rows from the input CSV file.

  6. Character encoding support: csvcut supports different character encodings, allowing you to work with CSV files in various languages.

Overall, csvcut provides a flexible and efficient way to manipulate and analyze CSV files through a simple command line interface. It can be useful for data cleaning, data exploration, and preprocessing tasks.

List of commands for csvcut:

  • csvcut:tldr:498a7 csvcut: Print indices and names of all columns.
    $ csvcut -n ${data-csv}
    try on your machine
    explain this command
  • csvcut:tldr:8074f csvcut: Extract all columns **except** the fourth one.
    $ csvcut -C ${4} ${data-csv}
    try on your machine
    explain this command
  • csvcut:tldr:99012 csvcut: Extract the first and third columns.
    $ csvcut -c ${1,3} ${data-csv}
    try on your machine
    explain this command
tool overview