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

csvformat

The csvformat command line tool is a powerful utility used to format and manipulate comma-separated values (CSV) files. It is part of the csvkit, a suite of command line tools for working with CSV files in a variety of ways.

Some key features of csvformat include:

  1. CSV file formatting: csvformat allows you to easily modify the structure and formatting of CSV files. This includes changing delimiter characters, modifying field widths, controlling quoting and escaping rules, and more.

  2. Conversion between formats: It can be used to convert CSV files to other formats, such as JSON, SQL, Excel, and HTML. This makes it handy for data transformation and integration tasks.

  3. Data cleaning and manipulation: csvformat provides various options for cleaning and manipulating data within CSV files. It supports sorting, filtering, renaming columns, removing duplicates, and applying regular expressions for advanced data processing.

  4. Configurable output: You have control over how the resulting formatted CSV file is generated. csvformat allows you to specify the output format, customize the row and column separators, specify the header row, and control other aspects of the output formatting.

In summary, csvformat is a versatile command line tool that helps you format, convert, and clean CSV files effectively. Whether you need to modify the structure of a CSV file, convert it to a different format, or perform data cleaning and manipulation tasks, csvformat provides a convenient and efficient solution.

List of commands for csvformat:

  • csvformat:tldr:0d1fe csvformat: Convert line endings to carriage return (^M) + line feed.
    $ csvformat -M "${\r\n}" ${data-csv}
    try on your machine
    explain this command
  • csvformat:tldr:41aa2 csvformat: Convert delimiters to a custom character.
    $ csvformat -D "${custom_character}" ${data-csv}
    try on your machine
    explain this command
  • csvformat:tldr:895a8 csvformat: Minimize use of quote characters.
    $ csvformat -U 0 ${data-csv}
    try on your machine
    explain this command
  • csvformat:tldr:9c4cb csvformat: Maximize use of quote characters.
    $ csvformat -U 1 ${data-csv}
    try on your machine
    explain this command
  • csvformat:tldr:ae818 csvformat: Convert to a tab-delimited file (TSV).
    $ csvformat -T ${data-csv}
    try on your machine
    explain this command
tool overview