diff --git a/docs/csv2json/index.html b/docs/csv2json/index.html index 6a42b96..5a50bbf 100644 --- a/docs/csv2json/index.html +++ b/docs/csv2json/index.html @@ -46,7 +46,9 @@

OPTIONS

-nl, -newline include trailing newline in output -o, -output output filename -quiet suppress error output + -trim-leading-space trim leading space in fields for CSV input -use-header treat the first row as field names + -use-lazy-quotes use lazy quotes for for CSV input -v, -version display version @@ -62,7 +64,7 @@

EXAMPLES

csv2json -as-blobs -i data1.csv
 
-

csv2json v0.0.22-pre

+

csv2json v0.0.23-pre

diff --git a/docs/csv2json/index.md b/docs/csv2json/index.md index ce93289..49e05dd 100644 --- a/docs/csv2json/index.md +++ b/docs/csv2json/index.md @@ -24,7 +24,9 @@ per line. -nl, -newline include trailing newline in output -o, -output output filename -quiet suppress error output + -trim-leading-space trim leading space in fields for CSV input -use-header treat the first row as field names + -use-lazy-quotes use lazy quotes for for CSV input -v, -version display version ``` @@ -41,4 +43,4 @@ Convert data1.csv to JSON blobs, one line per blob csv2json -as-blobs -i data1.csv -csv2json v0.0.22-pre +csv2json v0.0.23-pre diff --git a/docs/csv2mdtable/index.html b/docs/csv2mdtable/index.html index 77be75c..bbb4e87 100644 --- a/docs/csv2mdtable/index.html +++ b/docs/csv2mdtable/index.html @@ -44,6 +44,8 @@

OPTIONS

-nl, -newline if true include leading/trailing newline -o, -output output filename -quiet suppress error message + -trim-leading-space trim leading space in field(s) for CSV input + -use-lazy-quotes using lazy quotes for CSV input -v, -version display version @@ -59,7 +61,7 @@

EXAMPLES

csv2mdtable -i data1.csv -o data1.md
 
-

csv2mdtable v0.0.22-pre

+

csv2mdtable v0.0.23-pre

diff --git a/docs/csv2mdtable/index.md b/docs/csv2mdtable/index.md index 87fd091..fd71eff 100644 --- a/docs/csv2mdtable/index.md +++ b/docs/csv2mdtable/index.md @@ -22,6 +22,8 @@ table to stdout. -nl, -newline if true include leading/trailing newline -o, -output output filename -quiet suppress error message + -trim-leading-space trim leading space in field(s) for CSV input + -use-lazy-quotes using lazy quotes for CSV input -v, -version display version ``` @@ -38,4 +40,4 @@ Convert data1.csv to data1.md using options. csv2mdtable -i data1.csv -o data1.md -csv2mdtable v0.0.22-pre +csv2mdtable v0.0.23-pre diff --git a/docs/csv2xlsx/index.html b/docs/csv2xlsx/index.html index de41b47..7caf069 100644 --- a/docs/csv2xlsx/index.html +++ b/docs/csv2xlsx/index.html @@ -44,6 +44,8 @@

OPTIONS

-o, -output output filename -quiet suppress error messages -sheet Sheet name to create/replace + -trim-leading-space trim leading space in field(s) for CSV input + -use-lazy-quotes use lazy quotes for CSV input -v, -version display version -workbook Workbook name @@ -65,7 +67,7 @@

EXAMPLES

the workbook’s ‘My worksheet 2’ sheet. %!(EXTRA string=csv2xlsx, string=csv2xlsx)

-

csv2xlsx v0.0.22-pre

+

csv2xlsx v0.0.23-pre

diff --git a/docs/csv2xlsx/index.md b/docs/csv2xlsx/index.md index c496696..03ff59f 100644 --- a/docs/csv2xlsx/index.md +++ b/docs/csv2xlsx/index.md @@ -22,6 +22,8 @@ If the Workbook does not exist then it is created. -o, -output output filename -quiet suppress error messages -sheet Sheet name to create/replace + -trim-leading-space trim leading space in field(s) for CSV input + -use-lazy-quotes use lazy quotes for CSV input -v, -version display version -workbook Workbook name ``` @@ -43,4 +45,4 @@ This does the same but the contents of data.csv are piped into the workbook's 'My worksheet 2' sheet. %!(EXTRA string=csv2xlsx, string=csv2xlsx) -csv2xlsx v0.0.22-pre +csv2xlsx v0.0.23-pre diff --git a/docs/csvcleaner/index.html b/docs/csvcleaner/index.html index 7a9e2d7..26b1506 100644 --- a/docs/csvcleaner/index.html +++ b/docs/csvcleaner/index.html @@ -50,16 +50,17 @@

OPTIONS

-h, -help display help -i, -input input filename -l, -license display license - -left-trim If set to true leading white space in a field is ignored. + -left-trim left trim spaces on CSV out -o, -output output filename -output-comma if set use this character in place of a comma for delimiting output cells -quiet suppress error messages -reuse if false then a new array is allocated for each row processed, if true the array gets reused - -right-trim If set to true trailing white space in a field is ignored. + -right-trim right trim spaces on CSV out -stop-on-error exit on error, useful if you're trying to debug a problematic CSV file - -trim If set to true leading and trailing white space in a field is ignored. + -trim trim spaces on CSV out + -trim-leading-space trim leading space from field(s) for CSV input -use-crlf if set use a charage return and line feed in output - -use-lazy-quoting If LazyQuotes is true, a quote may appear in an unquoted field and a non-doubled quote may appear in a quoted field. + -use-lazy-quotes use lazy quotes for CSV input -v, -version display version @@ -70,22 +71,22 @@

EXAMPLES

cat mysheet.csv | csvcleaner -field-per-row=5
 
-

Trim leading spaces.

+

Trim leading spaces from output.

cat mysheet.csv | csvcleaner -left-trim
 
-

Trim trailing spaces.

+

Trim trailing spaces from output.

cat mysheet.csv | csvcleaner -right-trim
 
-

Trim leading and trailing spaces

+

Trim leading and trailing spaces from output.

cat mysheet.csv | csvcleaner -trim
 
-

csvcleaner v0.0.22-pre

+

csvcleaner v0.0.23-pre

diff --git a/docs/csvcleaner/index.md b/docs/csvcleaner/index.md index 9724ab0..9329479 100644 --- a/docs/csvcleaner/index.md +++ b/docs/csvcleaner/index.md @@ -28,16 +28,17 @@ minimal memory is used to operate on the file. -h, -help display help -i, -input input filename -l, -license display license - -left-trim If set to true leading white space in a field is ignored. + -left-trim left trim spaces on CSV out -o, -output output filename -output-comma if set use this character in place of a comma for delimiting output cells -quiet suppress error messages -reuse if false then a new array is allocated for each row processed, if true the array gets reused - -right-trim If set to true trailing white space in a field is ignored. + -right-trim right trim spaces on CSV out -stop-on-error exit on error, useful if you're trying to debug a problematic CSV file - -trim If set to true leading and trailing white space in a field is ignored. + -trim trim spaces on CSV out + -trim-leading-space trim leading space from field(s) for CSV input -use-crlf if set use a charage return and line feed in output - -use-lazy-quoting If LazyQuotes is true, a quote may appear in an unquoted field and a non-doubled quote may appear in a quoted field. + -use-lazy-quotes use lazy quotes for CSV input -v, -version display version ``` @@ -49,17 +50,17 @@ Normalizing a spread sheet's column count to 5 padding columns as needed per row cat mysheet.csv | csvcleaner -field-per-row=5 -Trim leading spaces. +Trim leading spaces from output. cat mysheet.csv | csvcleaner -left-trim -Trim trailing spaces. +Trim trailing spaces from output. cat mysheet.csv | csvcleaner -right-trim -Trim leading and trailing spaces +Trim leading and trailing spaces from output. cat mysheet.csv | csvcleaner -trim -csvcleaner v0.0.22-pre +csvcleaner v0.0.23-pre diff --git a/docs/csvcols/index.html b/docs/csvcols/index.html index 6014c7c..8223cc7 100644 --- a/docs/csvcols/index.html +++ b/docs/csvcols/index.html @@ -36,19 +36,21 @@

SYNOPSIS

OPTIONS

-
    -col, -cols               output specified columns (e.g. -col 1,12:14,2,4))
-    -d, -delimiter            set the input delimiter character
-    -examples                 display example
-    -generate-markdown-docs   generate markdown documentation
-    -h, -help                 display help
-    -i, -input                input filename
-    -l, -license              display license
-    -o, -output               output filename
-    -od, -output-delimiter    set the output delimiter character
-    -quiet                    suppress error messages
-    -skip-header-row          skip the header row
-    -uuid                     add a prefix row with generated UUID cell
-    -v, -version              display version
+
    -col, -cols              output specified columns (e.g. -col 1,12:14,2,4))
+    -d, -delimiter           set the input delimiter character
+    -examples                display example
+    -generate-markdown-docs  generate markdown documentation
+    -h, -help                display help
+    -i, -input               input filename
+    -l, -license             display license
+    -o, -output              output filename
+    -od, -output-delimiter   set the output delimiter character
+    -quiet                   suppress error messages
+    -skip-header-row         skip the header row
+    -trim-leading-space      trim leading space in field(s) for CSV input
+    -use-lazy-quotes         use lazy quotes on CSV input
+    -uuid                    add a prefix row with generated UUID cell
+    -v, -version             display version
 

EXAMPLES

@@ -77,7 +79,7 @@

EXAMPLES

csvcols -i 3col.csv -col 1,3 -o 2col.csv
 
-

csvcols v0.0.22-pre

+

csvcols v0.0.23-pre

diff --git a/docs/csvcols/index.md b/docs/csvcols/index.md index d5d83aa..6606670 100644 --- a/docs/csvcols/index.md +++ b/docs/csvcols/index.md @@ -14,19 +14,21 @@ listed on the commandline (first column is 1 not 0). ## OPTIONS ``` - -col, -cols output specified columns (e.g. -col 1,12:14,2,4)) - -d, -delimiter set the input delimiter character - -examples display example - -generate-markdown-docs generate markdown documentation - -h, -help display help - -i, -input input filename - -l, -license display license - -o, -output output filename - -od, -output-delimiter set the output delimiter character - -quiet suppress error messages - -skip-header-row skip the header row - -uuid add a prefix row with generated UUID cell - -v, -version display version + -col, -cols output specified columns (e.g. -col 1,12:14,2,4)) + -d, -delimiter set the input delimiter character + -examples display example + -generate-markdown-docs generate markdown documentation + -h, -help display help + -i, -input input filename + -l, -license display license + -o, -output output filename + -od, -output-delimiter set the output delimiter character + -quiet suppress error messages + -skip-header-row skip the header row + -trim-leading-space trim leading space in field(s) for CSV input + -use-lazy-quotes use lazy quotes on CSV input + -uuid add a prefix row with generated UUID cell + -v, -version display version ``` @@ -54,4 +56,4 @@ Using options filter a 3 column CSV file for columns 1,3 into 2col.csv csvcols -i 3col.csv -col 1,3 -o 2col.csv -csvcols v0.0.22-pre +csvcols v0.0.23-pre diff --git a/docs/csvfind/index.html b/docs/csvfind/index.html index 9e7f4c0..7907bd1 100644 --- a/docs/csvfind/index.html +++ b/docs/csvfind/index.html @@ -31,7 +31,7 @@

USAGE

SYNOPSIS

csvfind processes a CSV file as input returning rows that contain the column -with matched text. Columns are count from one instead of zero. Supports +with matched text. Columns are counted from one instead of zero. Supports exact match as well as some Levenshtein matching.

OPTIONS

@@ -57,7 +57,9 @@

OPTIONS

-skip-header-row skip the header row -stop-words use the colon delimited list of stop words -substitute-cost set the substitution cost to use for levenshtein matching - -trimspaces trim spaces around cell values before comparing + -trim-leading-space trim leadings space in field(s) for CSV input + -trimspace, -trimspaces trim spaces around cell values before comparing + -use-lazy-quotes use lazy quotes on CSV input -v, -version display version
@@ -68,7 +70,7 @@

EXAMPLES

csvfind -i books.csv -col=2 "The Red Book of Westmarch"
 
-

Find the rows where the third column (colums numbered 0,1,2) matches approximately +

Find the rows where the third column (colums numbered 1,2,3) matches approximately “The Red Book of Westmarch”

csvfind -i books.csv -col=2 -levenshtein \
@@ -84,7 +86,7 @@ 

EXAMPLES

csvfind -i books.csv -col=2 -contains "Red Book"
 
-

csvfind v0.0.22-pre

+

csvfind v0.0.23-pre

diff --git a/docs/csvfind/index.md b/docs/csvfind/index.md index 7a36970..afe5cec 100644 --- a/docs/csvfind/index.md +++ b/docs/csvfind/index.md @@ -7,7 +7,7 @@ csvfind processes a CSV file as input returning rows that contain the column -with matched text. Columns are count from one instead of zero. Supports +with matched text. Columns are counted from one instead of zero. Supports exact match as well as some Levenshtein matching. @@ -35,7 +35,9 @@ exact match as well as some Levenshtein matching. -skip-header-row skip the header row -stop-words use the colon delimited list of stop words -substitute-cost set the substitution cost to use for levenshtein matching - -trimspaces trim spaces around cell values before comparing + -trim-leading-space trim leadings space in field(s) for CSV input + -trimspace, -trimspaces trim spaces around cell values before comparing + -use-lazy-quotes use lazy quotes on CSV input -v, -version display version ``` @@ -47,7 +49,7 @@ Find the rows where the third column matches "The Red Book of Westmarch" exactly csvfind -i books.csv -col=2 "The Red Book of Westmarch" -Find the rows where the third column (colums numbered 0,1,2) matches approximately +Find the rows where the third column (colums numbered 1,2,3) matches approximately "The Red Book of Westmarch" csvfind -i books.csv -col=2 -levenshtein \ @@ -62,4 +64,4 @@ You can also search for phrases in columns. csvfind -i books.csv -col=2 -contains "Red Book" -csvfind v0.0.22-pre +csvfind v0.0.23-pre diff --git a/docs/csvjoin/index.html b/docs/csvjoin/index.html index 13328b3..9e50b9a 100644 --- a/docs/csvjoin/index.html +++ b/docs/csvjoin/index.html @@ -57,7 +57,9 @@

OPTIONS

-quiet supress error messages -stop-words a column delimited list of stop words to ingnore when matching -substitute-cost substitution cost to use when calculating Levenshtein edit distance + -trim-leading-space trim leading space in field(s) for CSV input -trimspaces trim spaces around cell values before comparing + -use-lazy-quotes use lazy quotes for CSV input -v, -version display version -verbose output processing count to stderr
@@ -74,7 +76,7 @@

EXAMPLES

-output=merged-data.csv -

csvjoin v0.0.22-pre

+

csvjoin v0.0.23-pre

diff --git a/docs/csvjoin/index.md b/docs/csvjoin/index.md index 34dc986..f80cf34 100644 --- a/docs/csvjoin/index.md +++ b/docs/csvjoin/index.md @@ -35,7 +35,9 @@ compared as strings. Columns are counted from one rather than zero. -quiet supress error messages -stop-words a column delimited list of stop words to ingnore when matching -substitute-cost substitution cost to use when calculating Levenshtein edit distance + -trim-leading-space trim leading space in field(s) for CSV input -trimspaces trim spaces around cell values before comparing + -use-lazy-quotes use lazy quotes for CSV input -v, -version display version -verbose output processing count to stderr ``` @@ -54,4 +56,4 @@ merged-data.csv.. -output=merged-data.csv -csvjoin v0.0.22-pre +csvjoin v0.0.23-pre diff --git a/docs/csvrows/index.html b/docs/csvrows/index.html index 66d7c83..ff66eb5 100644 --- a/docs/csvrows/index.html +++ b/docs/csvrows/index.html @@ -49,6 +49,8 @@

OPTIONS

-random return N randomly selected rows -row, -rows output specified rows in order (e.g. -row 1,5,2-4)) -skip-header-row skip the header row (alias for -row 2- + -trim-leading-space trim leading space in field(s) for CSV input + -use-lazy-quotes use lazy quotes for CSV input -v, -version display version @@ -84,7 +86,7 @@

EXAMPLES

csvrows -i 10row.csv -header=true -random=3
 
-

csvrows v0.0.22-pre

+

csvrows v0.0.23-pre

diff --git a/docs/csvrows/index.md b/docs/csvrows/index.md index 5782873..a0094a9 100644 --- a/docs/csvrows/index.md +++ b/docs/csvrows/index.md @@ -27,6 +27,8 @@ easy to output only the data rows. -random return N randomly selected rows -row, -rows output specified rows in order (e.g. -row 1,5,2-4)) -skip-header-row skip the header row (alias for -row 2- + -trim-leading-space trim leading space in field(s) for CSV input + -use-lazy-quotes use lazy quotes for CSV input -v, -version display version ``` @@ -60,4 +62,4 @@ a header row from 10row.csv. csvrows -i 10row.csv -header=true -random=3 -csvrows v0.0.22-pre +csvrows v0.0.23-pre diff --git a/docs/finddir/index.html b/docs/finddir/index.html index f116544..83fd793 100644 --- a/docs/finddir/index.html +++ b/docs/finddir/index.html @@ -58,7 +58,7 @@

EXAMPLES

finddir -p img
 
-

finddir v0.0.22-pre

+

finddir v0.0.23-pre

diff --git a/docs/finddir/index.md b/docs/finddir/index.md index 0fcf531..e2643f8 100644 --- a/docs/finddir/index.md +++ b/docs/finddir/index.md @@ -38,4 +38,4 @@ Find all subdirectories starting with "img". finddir -p img -finddir v0.0.22-pre +finddir v0.0.23-pre diff --git a/docs/findfile/index.html b/docs/findfile/index.html index 4295842..85921b0 100644 --- a/docs/findfile/index.html +++ b/docs/findfile/index.html @@ -58,7 +58,7 @@

EXAMPLES

findfile -s .md
 
-

findfile v0.0.22-pre

+

findfile v0.0.23-pre

diff --git a/docs/findfile/index.md b/docs/findfile/index.md index 081a5b2..625ea0c 100644 --- a/docs/findfile/index.md +++ b/docs/findfile/index.md @@ -38,4 +38,4 @@ Search the current directory and subdirectories for Markdown files with extensio findfile -s .md -findfile v0.0.22-pre +findfile v0.0.23-pre diff --git a/docs/jsoncols/index.html b/docs/jsoncols/index.html index 1ff6d0a..c31826a 100644 --- a/docs/jsoncols/index.html +++ b/docs/jsoncols/index.html @@ -107,7 +107,7 @@

EXAMPLES

“Doe, Jane”,“jane.doe@xample.org”,42

-

jsoncols v0.0.22-pre

+

jsoncols v0.0.23-pre

diff --git a/docs/jsoncols/index.md b/docs/jsoncols/index.md index 2457173..1c7618c 100644 --- a/docs/jsoncols/index.md +++ b/docs/jsoncols/index.md @@ -74,4 +74,4 @@ Would yield "Doe, Jane","jane.doe@xample.org",42 -jsoncols v0.0.22-pre +jsoncols v0.0.23-pre diff --git a/docs/jsonjoin/index.html b/docs/jsonjoin/index.html index c5cb638..f736ef9 100644 --- a/docs/jsonjoin/index.html +++ b/docs/jsonjoin/index.html @@ -152,7 +152,7 @@

EXAMPLES

{ “name”: “Doe, Jane”, “email”:“jane.doe@example.edu”, “age”: 42, “bio”: “World renowned geophysist.” }

-

jsonjoin v0.0.22-pre

+

jsonjoin v0.0.23-pre

diff --git a/docs/jsonjoin/index.md b/docs/jsonjoin/index.md index f2b24e2..32695bf 100644 --- a/docs/jsonjoin/index.md +++ b/docs/jsonjoin/index.md @@ -128,4 +128,4 @@ would yield "bio": "World renowned geophysist." } -jsonjoin v0.0.22-pre +jsonjoin v0.0.23-pre diff --git a/docs/jsonmunge/index.html b/docs/jsonmunge/index.html index f8ef097..3867120 100644 --- a/docs/jsonmunge/index.html +++ b/docs/jsonmunge/index.html @@ -74,7 +74,7 @@

EXAMPLES

"Doe, Jane"
 
-

jsonmunge v0.0.22-pre

+

jsonmunge v0.0.23-pre

diff --git a/docs/jsonmunge/index.md b/docs/jsonmunge/index.md index ca439ef..b239a3f 100644 --- a/docs/jsonmunge/index.md +++ b/docs/jsonmunge/index.md @@ -51,4 +51,4 @@ This would yield "Doe, Jane" -jsonmunge v0.0.22-pre +jsonmunge v0.0.23-pre diff --git a/docs/jsonrange/index.html b/docs/jsonrange/index.html index 966f9ed..b423061 100644 --- a/docs/jsonrange/index.html +++ b/docs/jsonrange/index.html @@ -181,7 +181,7 @@

EXAMPLES

20 -

jsonrange v0.0.22-pre

+

jsonrange v0.0.23-pre

diff --git a/docs/jsonrange/index.md b/docs/jsonrange/index.md index 74258b7..59da9f1 100644 --- a/docs/jsonrange/index.md +++ b/docs/jsonrange/index.md @@ -141,4 +141,4 @@ would yield 20 -jsonrange v0.0.22-pre +jsonrange v0.0.23-pre diff --git a/docs/mergepath/index.html b/docs/mergepath/index.html index 6ca6e73..be7326c 100644 --- a/docs/mergepath/index.html +++ b/docs/mergepath/index.html @@ -57,7 +57,7 @@

EXAMPLES

export PATH=$(mergepath -p $HOME/bin)
 
-

mergepath v0.0.22-pre

+

mergepath v0.0.23-pre

diff --git a/docs/mergepath/index.md b/docs/mergepath/index.md index 9079644..a710863 100644 --- a/docs/mergepath/index.md +++ b/docs/mergepath/index.md @@ -37,4 +37,4 @@ This would put your home bin directory at the beginning of your path. export PATH=$(mergepath -p $HOME/bin) -mergepath v0.0.22-pre +mergepath v0.0.23-pre diff --git a/docs/range/index.html b/docs/range/index.html index 9e6d6a6..cb4c563 100644 --- a/docs/range/index.html +++ b/docs/range/index.html @@ -90,7 +90,7 @@

EXAMPLES

Yields a random integer from 0 to 10

-

range v0.0.22-pre

+

range v0.0.23-pre

diff --git a/docs/range/index.md b/docs/range/index.md index be3e26e..d96c67f 100644 --- a/docs/range/index.md +++ b/docs/range/index.md @@ -67,4 +67,4 @@ Pick a random integer between zero and ten Yields a random integer from 0 to 10 -range v0.0.22-pre +range v0.0.23-pre diff --git a/docs/reldate/index.html b/docs/reldate/index.html index a9a5f4d..d9fba97 100644 --- a/docs/reldate/index.html +++ b/docs/reldate/index.html @@ -126,7 +126,7 @@

EXAMPLES

insensitive and can be the first three letters of the English names or full English names (e.g. Monday, monday, Mon, mon).

-

reldate v0.0.22-pre

+

reldate v0.0.23-pre

diff --git a/docs/reldate/index.md b/docs/reldate/index.md index d5d521f..c4c9da0 100644 --- a/docs/reldate/index.md +++ b/docs/reldate/index.md @@ -98,4 +98,4 @@ insensitive and can be the first three letters of the English names or full English names (e.g. Monday, monday, Mon, mon). -reldate v0.0.22-pre +reldate v0.0.23-pre diff --git a/docs/string/index.html b/docs/string/index.html index 82796f2..1c80d05 100644 --- a/docs/string/index.html +++ b/docs/string/index.html @@ -45,17 +45,17 @@

OPTIONS

Options are shared between all actions and must precede the action on the command line.

-
    -d, -delimiter            set the delimiter
-    -do, -output-delimiter    set the output delimiter
-    -e, -examples             display examples
-    -generate-markdown-docs   output documentation in Markdown
-    -h, -help                 display help
-    -i, -input                input file name
-    -l, -license              display license
-    -nl, -newline             if true add a trailing newline
-    -o, -output               output file name
-    -quiet                    suppress error messages
-    -v, -version              display version
+
    -d, -delimiter           set the delimiter
+    -do, -output-delimiter   set the output delimiter
+    -e, -examples            display examples
+    -generate-markdown-docs  output documentation in Markdown
+    -h, -help                display help
+    -i, -input               input file name
+    -l, -license             display license
+    -nl, -newline            if true add a trailing newline
+    -o, -output              output file name
+    -quiet                   suppress error messages
+    -v, -version             display version
 

ACTIONS

@@ -115,7 +115,7 @@

EXAMPLES

Related: contains, count, englishtitle, hasprefix, hassuffix, join, length, padleft, padright, position, replace, replacen, slice, split, splitn, tolower, totitle, toupper, trim, trimleft, trimprefix, trimright, trimspace, trimsuffix

-

string v0.0.22-pre

+

string v0.0.23-pre

diff --git a/docs/string/index.md b/docs/string/index.md index e851b64..c8f9e5c 100644 --- a/docs/string/index.md +++ b/docs/string/index.md @@ -21,17 +21,17 @@ string is a command line tool for transforming strings in common ways. Options are shared between all actions and must precede the action on the command line. ``` - -d, -delimiter set the delimiter - -do, -output-delimiter set the output delimiter - -e, -examples display examples - -generate-markdown-docs output documentation in Markdown - -h, -help display help - -i, -input input file name - -l, -license display license - -nl, -newline if true add a trailing newline - -o, -output output file name - -quiet suppress error messages - -v, -version display version + -d, -delimiter set the delimiter + -do, -output-delimiter set the output delimiter + -e, -examples display examples + -generate-markdown-docs output documentation in Markdown + -h, -help display help + -i, -input input file name + -l, -license display license + -nl, -newline if true add a trailing newline + -o, -output output file name + -quiet suppress error messages + -v, -version display version ``` @@ -92,4 +92,4 @@ Join a JSON array of strings into a newline delimited list Related: [contains](contains.html), [count](count.html), [englishtitle](englishtitle.html), [hasprefix](hasprefix.html), [hassuffix](hassuffix.html), [join](join.html), [length](length.html), [padleft](padleft.html), [padright](padright.html), [position](position.html), [replace](replace.html), [replacen](replacen.html), [slice](slice.html), [split](split.html), [splitn](splitn.html), [tolower](tolower.html), [totitle](totitle.html), [toupper](toupper.html), [trim](trim.html), [trimleft](trimleft.html), [trimprefix](trimprefix.html), [trimright](trimright.html), [trimspace](trimspace.html), [trimsuffix](trimsuffix.html) -string v0.0.22-pre +string v0.0.23-pre diff --git a/docs/timefmt/index.html b/docs/timefmt/index.html index 608a5e4..b707524 100644 --- a/docs/timefmt/index.html +++ b/docs/timefmt/index.html @@ -74,7 +74,7 @@

EXAMPLES

Yields “02 Dec 17 08:08 UTC”

-

timefmt v0.0.22-pre

+

timefmt v0.0.23-pre

diff --git a/docs/timefmt/index.md b/docs/timefmt/index.md index cbecf72..1d43196 100644 --- a/docs/timefmt/index.md +++ b/docs/timefmt/index.md @@ -51,4 +51,4 @@ Format the MySQL date/time of 8:08am, July 2, 2016 Yields "02 Dec 17 08:08 UTC" -timefmt v0.0.22-pre +timefmt v0.0.23-pre diff --git a/docs/urlparse/index.html b/docs/urlparse/index.html index 34cf73c..5c77f39 100644 --- a/docs/urlparse/index.html +++ b/docs/urlparse/index.html @@ -93,7 +93,7 @@

EXAMPLES

Without options urlparse returns protocol, host and path fields separated by a tab.

-

urlparse v0.0.22-pre

+

urlparse v0.0.23-pre

diff --git a/docs/urlparse/index.md b/docs/urlparse/index.md index e36cb7d..aaf6ef6 100644 --- a/docs/urlparse/index.md +++ b/docs/urlparse/index.md @@ -67,4 +67,4 @@ Without options urlparse returns protocol, host and path fields separated by a tab. -urlparse v0.0.22-pre +urlparse v0.0.23-pre diff --git a/docs/xlsx2csv/index.html b/docs/xlsx2csv/index.html index 74bd5ca..078d855 100644 --- a/docs/xlsx2csv/index.html +++ b/docs/xlsx2csv/index.html @@ -74,7 +74,7 @@

EXAMPLES

%!(EXTRA string=xlsx2csv, string=xlsx2csv)

-

xlsx2csv v0.0.22-pre

+

xlsx2csv v0.0.23-pre

diff --git a/docs/xlsx2csv/index.md b/docs/xlsx2csv/index.md index b3b74cc..0b39fde 100644 --- a/docs/xlsx2csv/index.md +++ b/docs/xlsx2csv/index.md @@ -49,4 +49,4 @@ Putting it all together in a shell script. done %!(EXTRA string=xlsx2csv, string=xlsx2csv) -xlsx2csv v0.0.22-pre +xlsx2csv v0.0.23-pre diff --git a/docs/xlsx2json/index.html b/docs/xlsx2json/index.html index 1fe1643..899eb4d 100644 --- a/docs/xlsx2json/index.html +++ b/docs/xlsx2json/index.html @@ -75,7 +75,7 @@

EXAMPLES

%!(EXTRA string=xlsx2json, string=xlsx2json)

-

xlsx2json v0.0.22-pre

+

xlsx2json v0.0.23-pre

diff --git a/docs/xlsx2json/index.md b/docs/xlsx2json/index.md index 8a3996f..6b4cd7c 100644 --- a/docs/xlsx2json/index.md +++ b/docs/xlsx2json/index.md @@ -50,4 +50,4 @@ into JSON documents.. done %!(EXTRA string=xlsx2json, string=xlsx2json) -xlsx2json v0.0.22-pre +xlsx2json v0.0.23-pre diff --git a/how-to/csvcols/index.html b/how-to/csvcols/index.html index 1af617c..9406f0c 100644 --- a/how-to/csvcols/index.html +++ b/how-to/csvcols/index.html @@ -49,6 +49,29 @@

Using csvcols

    csvcols -i 3col.csv -col 1,3 -o 2col.csv
 
+

Quoting issues

+ +

Sometimes CSV files have sloppy or problematic quoting. Two options +are provided (-use-lazy-quotes, -trim-leading-space). In the example +below the CSV has trailing white space in the second row. By using +-use-lazy-quotes option we can get the first two columns without +running into CSV parsing errors.

+ +
    csvcols -i quoting-example.csv -use-lazy-quotes -col 1,2
+
+ +

Input (with trailing whitespace in row 2)

+ +
    "A","B","C@caltech.edu","2017-03-27 14:38:57","Yes","CCE","refund of my deposit"
+    "C","D","E@caltech.edu","2017-04-05 10:50:42","Yes","EAS","receive a refund of my deposit"  
+
+ +

Output

+ +
    A,B
+    C,D
+
+