Hi,
Here is my problem.
I will be getting a file with fixed width format.
Here i need to develop an utility in such a way that if i give the file name,then the script should generate 2 files,one with the data seperated by commas and the other file file with the metadata information.
for ex:
assume that this is my input file:
state desc
----- ----
TX Texas
Mi Michigan
the output should be like this
datafile:
TX,Texas
Mi,Michigan
Metadata File:
Col1 2
Col2 20
This is how the output should look like.
And the script should not be specific to this file,whatever the file i should be able to generate 2 files (commma seperated,metadata).
please give me some suggestions,how this can be done,with this there might be spaces in the data so the utility should be able to take that into consuderation.its urgent
I am not that good in shellscripting,so please be elaborative with ur answers
so that i can understand.
Thanks
vootkur