Solution for converting Seq to Line Seq
Posted in 1998
--====================987654321_0==_ Content-Type: text/plain; charset="us-ascii" Hi Everybody, I had posted the problem for converting the sequential file to line sequential file and have got the required solution. the problem : ============= I received a file from various locations which is sequential file. I need to load it to informix table. I could not use awk, grep or something like that because it was a sequential file and had just one line in the full file. SO I HAD TO CONVERT THIS SEQUENTIAL FILE TO LINE SEQUENTIAL FILE. the solution : ============== the solution were provided by Nick Leporacci, Clem Akins, Leffler Jonathan and Henry Olson. I am sure this solutions will be useful to many others. all the solutions are attached along with this file : 1. Nick Leporacci line_c.exe C program to convert the file. Line_c infile outfile length 2. Clem Akins Suggested a C program to get it done. 3. Leffler Jonathan recsplit.c C Program to convert the file. recsplit -l recsize ifile > ofile 4. Shankar Trying to use awk and will get back with the solution. 5. Henry Olson lineseq.c C Program to convert the file. This will remove any line feeds and insert a line feed at the given length. lineseq -s recsize ifile > ofile 6. Nick Leporacci liner.exe DOS Solution. This program works on DOS/NT. liner infile outfile recsize ---------------------------------------------------------------------- I am thankful to you for providing the solution. Thanks, Sunil Thakkar. ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com --====================987654321_0==_ Content-Type: application/octet-stream; name="Liner.exe" Content-Transfer-Encoding: x-uuencode Content-Disposition: attachment; filename="Liner.exe" begin 644 Liner.exe M35K<`1,``0`@``X`__]#`H``````````/@````$`^U!J<@`````````````` M```````````````````````!```````````````````````````````````` M```````````````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` M``````````````````````"Z[0$NB1:-`K0PS2&++@(`BQXL`([:HY(`C`:0 M`(D>C`")+J@`Z($!Q#Z*`(O'B]BY_W_\\\\J[C84,F.`5U]H#-@/?9B0Z*`+D! M`-/C@\\,(@^/XB1Z.`(S:*^J+/D0$@?\\``G,'OP`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