aboutsummaryrefslogtreecommitdiffstats
path: root/doc/gawktexi.in
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2020-12-26 21:10:11 +0200
committerArnold D. Robbins <arnold@skeeve.com>2020-12-26 21:10:11 +0200
commitb61b0b1c70cb7669d518858b10e3f99d8de07595 (patch)
tree937f1e318aa2b5d1052e6e86447edb328f404a12 /doc/gawktexi.in
parentb82e1ea2fff1333272d1c29b762dc1abd0215e7e (diff)
parentb778eb8fb6dce8b94323f796955cb581eb3ad294 (diff)
downloadegawk-b61b0b1c70cb7669d518858b10e3f99d8de07595.tar.gz
egawk-b61b0b1c70cb7669d518858b10e3f99d8de07595.tar.bz2
egawk-b61b0b1c70cb7669d518858b10e3f99d8de07595.zip
Merge branch 'gawk-5.1-stable'
Diffstat (limited to 'doc/gawktexi.in')
-rw-r--r--doc/gawktexi.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/gawktexi.in b/doc/gawktexi.in
index eb9e794e..92098829 100644
--- a/doc/gawktexi.in
+++ b/doc/gawktexi.in
@@ -7846,6 +7846,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
@@ -8029,6 +8031,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