From bb2668c2d1417664932cd9c1609d435b97eab1dd Mon Sep 17 00:00:00 2001 From: Erlang Parasu Date: Thu, 20 Jun 2024 12:52:11 +0800 Subject: [PATCH] Update README.md: about delimiter --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index dea13e62..92bbe664 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,26 @@ Dual-licensed under MIT or the [UNLICENSE](https://unlicense.org). * **table** - Show aligned output of any CSV data using [elastic tabstops](https://github.com/BurntSushi/tabwriter). +#### Common commands options +``` + -h, --help Display this message + -d, --delimiter The field delimiter for reading CSV data. + Must be a single character. (default: ,) +``` + +**Examples** + +File delimited with comma: + +`xsv headers -d ',' data_with_comma.csv` + +File delimited with semicolon: + +`xsv headers -d ';' data_with_semic.csv` + +File delimited with tab: + +`xsv headers -d '\t' data_with_tab.csv` ### A whirlwind tour