PHP Classes

File: csvfd.1m

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Classes of Mark Williamson  >  csvFieldDump  >  csvfd.1m  >  Download  
File: csvfd.1m
Role: Documentation
Content type: text/plain
Description: man file for csvfd (csvfielddump)
Class: csvFieldDump
Pull only the fields you want from a csv file.
Author: By
Last change:
Date: 12 years ago
Size: 1,799 bytes


Class file image Download
'\" t
.\" Mark made this csvfd   2002/nov/08    *
.TH csvfd  
.ds n 5
.ds d /usr/bin/csvfd
\fBcsvfd\fR - Dump specified fields from a csv file
\fBcsvfd\fR [ GNU style options]  [\fB-F -FO -dh -dn 1,2,3 \fR] [\fBfile\fR] 
\fBcsvfd\fR looks in \fIfile\fR for \fBfields\fR specified.  For each
one found, a line is written to standard output. 
The csv field headers can also be sing the -dh (dump headers) flag. 

Fields can be specified by either name or number (both can be acertained using the \fI-dh\fR flag on the 
csv file first to figure out which fields you want.

.TP 5
Dump csv file headers - dumps the first line of the specified csv in a numbered list. 
.TP 5
\fB-df\ <n>\fR
Dump field(s) number n - accepts comma delimited list for multiple field numbers eg: -df 1,2,3
.TP 5
\fB-dn <n>\fR
Like \fB-df\fR but takes the names of the csv fields instead - eg -dn Code,UID,Desc,Name (commas for multiple names)
.TP 5
Sets the field delimiter that is used in the input csv file
.TP 5
Sets the output field delimiter that will be used in the output of csvfd
.TP 20
This script was written by Mark Williamson - its a php class sitting in a dir in a path. 
It tries to pretend its a c style linux app in its argument processing. 
Mark Williamson 
.\"# The following sets edit modes for GNU EMACS
.\"# Local Variables:
.\"# mode:nroff
.\"# fill-column:79
.\"# End:
.\"# 8/nov/2002