Document FILENAMES MATCHING option.

This commit is contained in:
Dimitri Fontaine 2014-05-26 11:04:49 +02:00
parent 36805afc64
commit a0518f2e98
2 changed files with 30 additions and 0 deletions

View File

@ -454,6 +454,25 @@ The data is found after the end of the parsed commands\. Any number of empty lin
.IP
Reads the data from the standard input stream\.
.
.IP "\(bu" 4
\fIFILENAMES MATCHING\fR
.
.IP
The whole \fImatching\fR clause must follow the following rule:
.
.IP "" 4
.
.nf
[ ALL FILENAMES | [ FIRST ] FILENAME ] MATCHING ~<>
.
.fi
.
.IP "" 0
.
.IP
The \fImatching\fR clause applies given \fIregular expression\fR (see above for exact syntax, several options can be used here) to filenames\. It\'s then possible to load data from only the first match of all of them\.
.
.IP "" 0
.
.IP

View File

@ -400,6 +400,17 @@ The `csv` format command accepts the following clauses and options:
Reads the data from the standard input stream.
- *FILENAMES MATCHING*
The whole *matching* clause must follow the following rule:
[ ALL FILENAMES | [ FIRST ] FILENAME ] MATCHING ~<>
The *matching* clause applies given *regular expression* (see above
for exact syntax, several options can be used here) to filenames.
It's then possible to load data from only the first match of all of
them.
The *FROM* option also supports an optional comma separated list of
*field* names describing what is expected in the `CSV` data file.