aboutsummaryrefslogtreecommitdiffstats
path: root/doc/gawk.texi
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2020-12-26 20:47:32 +0200
committerArnold D. Robbins <arnold@skeeve.com>2020-12-26 20:47:32 +0200
commitf7a69176569a76daab7b772157a76ddb8f85e046 (patch)
treeb02f311383b72b3b6c156343afd3b9dad8c61602 /doc/gawk.texi
parentdaaaab1ae680cbaf6575741c314a19ae9d57ef8f (diff)
downloadegawk-f7a69176569a76daab7b772157a76ddb8f85e046.tar.gz
egawk-f7a69176569a76daab7b772157a76ddb8f85e046.tar.bz2
egawk-f7a69176569a76daab7b772157a76ddb8f85e046.zip
Doc updates.
Diffstat (limited to 'doc/gawk.texi')
-rw-r--r--doc/gawk.texi11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/gawk.texi b/doc/gawk.texi
index a6f49cb5..e4d02059 100644
--- a/doc/gawk.texi
+++ b/doc/gawk.texi
@@ -8291,6 +8291,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
@@ -8474,6 +8476,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