Thanks, is there a way I could do it with writing:
note: I'd be writing this into a file/script then running it as a parameter. Say the above code is titled genderExtract.sh, could I do this:
EDIT: I'm just doing this to get the gist of using -F and I don't want to do it through command line. I don't need to make a program to extract genders...but I could see that being useful for surveying purposes.
Hi, I need to replace a field (field 5) in a csv file, based on the content of another field (field 2), something like this:
actual file:
field1, field2, filed3, field4, field5, field6
01,232,abb-pan,679,,pan
02,565,cdf-pan,683,,pan
the result should be:
... (4 Replies)
Hello all,
I've a CSV file and need to replace 5th field if its value is "X".
The exact requirement is to replace 5th field (column) with "Y" if
a. it's value is "X" AND
b. the line must start with ABC string
i guess this can be done with awk. Pl help.
For security reasons, the... (2 Replies)
Hi,
I need to extract values from a CSV file based on some conditions as explained below:
File format details:
1. each set starts with AAA only
2. number of columns is fixed
3. number of rows per set may vary (as they are having different CCC rows)
Now, i need to extract 3rd column of... (3 Replies)
Hi all I am new to unix . I need to write a script that extracts some data from oracle into a .csv file with heading of the columns in the file
SO i created the following two scripts but they are not working
ac.sql (this is the sql file that i will call inside the shell script when i run... (1 Reply)
I have a csv file that I need to extract some data from depending on another field after reading info from another text file.
The text file would say have 592560 in it.
The csv file may have some data like so
Field 1 Field2 Field3 Field4 Field5 Field6
20009756 1 ... (9 Replies)
How can I select the bold fields from the following?
"CLLI","SWREL","RPTDATE","RPTIME","TZ","RPTTYPE","RPTPD","IVALDATE","IVALSTART","IVALEND","NUMENTIDS"
"tklc9010801","EAGLE5 45.0.0-64.70.1","2013-08-07","02:01:50","MST ","COMPONENT MEASUREMENTS ON... (4 Replies)
Hi
I have a job status csv file. I want to update the status of the job in the file.
Below is the csv file
1,jobname1,in_progress,starttime,somthing,somthing
2,jobname2,completed,starttime,somthing,somthing
3,jobname3,failed,starttime,somthing,somthing... (8 Replies)
I have a .CSV file (file.csv) whose data are all enclosed in double quotes. Sample format of the file is as below:
column1,column2,column3,column4,column5,column6, column7, Column8, Column9, Column10
"12","B000QRIGJ4","4432","string with quotes, and with a comma, and colon: in... (3 Replies)
Hi,
I have a file of csv data, which looks like this:
file1:
1AA,LGV_PONCEY_LES_ATHEE,1,\N,1,00020460E1,0,\N,\N,\N,\N,2,00.22335321,0.00466628
2BB,LES_POUGES_ASF,\N,200,200,00006298G1,0,\N,\N,\N,\N,1,00.30887539,0.00050312... (10 Replies)
Discussion started by: djoseph
10 Replies
LEARN ABOUT MINIX
genders_parse
GENDERS_PARSE(3) LIBGENDERS GENDERS_PARSE(3)NAME
genders_parse - determine errors with a genders file
SYNOPSIS
#include <genders.h>
int genders_parse(genders_t handle, const char *filename, FILE *stream);
DESCRIPTION
genders_parse() parses the genders file indicated by filename and outputs information to stream about parse errors in the genders file. If
filename is NULL, the default genders file will be checked. If stream is NULL, information will be output to standard error.
RETURN VALUES
On success, the number of parse errors discovered is returned. If there are no errors, 0 is returned. On error, -1 is returned, and an
error code is returned in handle. The error code can be retrieved via genders_errnum(3) , and a description of the error code can be
retrieved via genders_strerror(3). Error codes are defined in genders.h.
ERRORS
GENDERS_ERR_NULLHANDLE
The handle parameter is NULL. The genders handle must be created with genders_handle_create(3).
GENDERS_ERR_OPEN
The genders file indicated by filename cannot be opened for reading.
GENDERS_ERR_OVERFLOW
A line in the genders database exceeds the maximum allowed length.
GENDERS_ERR_MAGIC
handle has an incorrect magic number. handle does not point to a genders handle or handle has been destroyed by genders_han-
dle_destroy(3).
FILES
/usr/include/genders.h
SEE ALSO libgenders(3), genders_handle_create(3), genders_errnum(3), genders_strerror(3)LLNL August 2003 GENDERS_PARSE(3)