diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2020-12-26 21:10:11 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2020-12-26 21:10:11 +0200 |
commit | b61b0b1c70cb7669d518858b10e3f99d8de07595 (patch) | |
tree | 937f1e318aa2b5d1052e6e86447edb328f404a12 /doc/gawk.texi | |
parent | b82e1ea2fff1333272d1c29b762dc1abd0215e7e (diff) | |
parent | b778eb8fb6dce8b94323f796955cb581eb3ad294 (diff) | |
download | egawk-b61b0b1c70cb7669d518858b10e3f99d8de07595.tar.gz egawk-b61b0b1c70cb7669d518858b10e3f99d8de07595.tar.bz2 egawk-b61b0b1c70cb7669d518858b10e3f99d8de07595.zip |
Merge branch 'gawk-5.1-stable'
Diffstat (limited to 'doc/gawk.texi')
-rw-r--r-- | doc/gawk.texi | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/gawk.texi b/doc/gawk.texi index b8fcff00..664f9e70 100644 --- a/doc/gawk.texi +++ b/doc/gawk.texi @@ -8293,6 +8293,8 @@ words, @code{FS} defines what a field @emph{is not}, instead of what a field However, there are times when you really want to define the fields by what they are, and not by what they are not. +@cindex CSV (comma separated values) data @subentry parsing with @code{FPAT} +@cindex Comma separated values (CSV) data @subentry parsing with @code{FPAT} The most notorious such case is so-called @dfn{comma-separated values} (CSV) data. Many spreadsheet programs, for example, can export their data into text files, where each record is @@ -8476,6 +8478,15 @@ $ @kbd{gawk -v fpat=2 -f test-csv.awk sample.csv} @print{} NF = 3 <p><><s> @end example +@cindex Collado, Manuel +@cindex @code{CSVMODE} library for @command{gawk} +@cindex CSV (comma separated values) data @subentry parsing with @code{CSVMODE} library +@cindex Comma separated values (CSV) data @subentry parsing with @code{FPAT} library +In general, using @code{FPAT} to do your own CSV parsing is like having +a bed with a blanket that's not quite big enough. There's always a corner +that isn't covered. We recommend, instead, that you use Manuel Collado's +@uref{http://mcollado.z15.es/xgawk/, @code{CSVMODE} library for @command{gawk}}. + @node Testing field creation @section Checking How @command{gawk} Is Splitting Records |