Well what I'm thinking of is a template file where an awk program can then merge with to produce your document.
Imaging if the document above was split up into something like:
Then an awk program could output the HEADER block, and for each csv line replace all the %%FIELD#nn%% values in the ROW block and finally output the FOOTER block.
---------- Post updated at 08:37 AM ---------- Previous update was at 08:13 AM ----------
The code to produce your file could be as simple as this:
However, if your csv has quoted fields with possible escaped characters and the like, you will need something a little smarter, like a proper csv parser.
Fortunately I have already posted one in this forum and we could use most of the code from that:
Hi,
I have a problem in formatting the excel file from my script.
Assume that there is a text file generated using a 'C shell Unix script' with a format similar to the one seen below. Each column has a fixed length and every row is going to have a value against a column depending on the... (1 Reply)
Hi,
I have a text file like
----------------------
aaa|bbb|ccc|ddd|eee
fff|gggg|hhhhhh|kkkk
--------------------
I have a script which will transfer(thourgh FTP) this text file to windows system.
But I want to covert it into excel or CSF then upload into windows system..
thanks (9 Replies)
I want to check whether if any column data has any + , - , = prefixed to it then convert it in such a form that in excel its not read as formula.
echo "$DATA" | awk 'BEGIN { OFS="," } -F" " {print $1,$2,$3,$4,$5,$6,$7,$8.$9,$10,$11,$12}' (4 Replies)
Hi All,
I have to convert the excel file which will be placed in the Unix box to a CSV file using a shell script.
Please Advise.
Thanks & Regards,
Kumar66 (1 Reply)
Hi,
I am trying to attach and email a csv file in the form of an excel sheet.
And I have been successful in doing this.
But after some days I realised that some fields in the csv file are also having commas because of which this field is getting splitted in columns in the excel sheet.
... (5 Replies)
Hi All, Firstly I will like to wish A Happy New Year to all.
Now my issue is
I have one csv file say(data.csv) and one excel file say(result.xls)
The result.xls contains two sheet name Sheet1 and Sheet2, Now What I am trying to do is to First I want to delete that data of Sheet2 if present any,... (6 Replies)
I am trying to create a program where user can input data in certain excel cells using user interface on internet....the programming is on perl and server is unix
But when i parse data into excel the formatting of sheets is turned to default and all macro coding removed.
What to do...Please... (7 Replies)
Hi ,
i am generating some data by firing sql query with connecting to the database by my solaris box.
The below one should be the header line of my excel ,here its coming in separate row.
TO_CHAR(C. CURR_EMP_NO
---------- ---------------
LST_NM... (6 Replies)
Hi, I am newbie in shell script.
I need your help to solve my problem.
Firstly, I have 2 files of csv and i want to compare of the contents then the output will be written in a new csv file.
File1:
SourceFile,DateTimeOriginal
/home/intannf/foto/IMG_0713.JPG,2015:02:17 11:14:07... (8 Replies)
Hello,
I have a file with the below contents :
Policy Name: Backup_bkp
Policy Type: Catalog_bkp
Active: yes
Effective date: 08/07/2013 02:02:12
Mult. Data Streams: no
Client Encrypt: no
Checkpoint: no
Policy Priority: ... (11 Replies)
Discussion started by: rahul2662
11 Replies
LEARN ABOUT MOJAVE
glgetuniformblockindex
GLGETUNIFORMBLOCKIND(3G) OpenGL 3.3 GLGETUNIFORMBLOCKIND(3G)NAME
glGetUniformBlockIndex - retrieve the index of a named uniform block
C SPECIFICATION
GLuint glGetUniformBlockIndex(GLuint program, const GLchar *uniformBlockName);
PARAMETERS
program
Specifies the name of a program containing the uniform block.
uniformBlockName
Specifies the address an array of characters to containing the name of the uniform block whose index to retrieve.
DESCRIPTION
glGetUniformBlockIndex retrieves the index of a uniform block within program.
program must be the name of a program object for which the command glLinkProgram() must have been called in the past, although it is not
required that glLinkProgram() must have succeeded. The link could have failed because the number of active uniforms exceeded the limit.
uniformBlockName must contain a nul-terminated string specifying the name of the uniform block.
glGetUniformBlockIndex returns the uniform block index for the uniform block named uniformBlockName of program. If uniformBlockName does
not identify an active uniform block of program, glGetUniformBlockIndex returns the special identifier, GL_INVALID_INDEX. Indices of the
active uniform blocks of a program are assigned in consecutive order, beginning with zero.
ERRORS
GL_INVALID_OPERATION is generated if program is not the name of a program object for which glLinkProgram() has been called in the past.
NOTES
glGetUniformBlockIndex is available only if the GL version is 3.1 or greater.
SEE ALSO
glGetActiveUniformBlockName(), glGetActiveUniformBlock(), glLinkProgram()
COPYRIGHT
Copyright (C) 2010 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication
License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.
OpenGL 3.3 03/08/2011 GLGETUNIFORMBLOCKIND(3G)