Home » Infrastructure » Unix » Changing First line in existing Flat file
icon5.gif  Changing First line in existing Flat file [message #300251] Thu, 14 February 2008 14:06 Go to next message
kham2k
Messages: 34
Registered: May 2007
Member
HI all

Can any one please help me with this? I have a flat file. I just want to add something to its first line and not want to touch rest of the file. e.g


Firstlineofflatfile20080220
010800650022000003190000000+000002ECLPSE BIG E SPEAR000022505 ^M
010800650034000003470000000+000006YORK MINT TIN 000012405 ^M
010800650012546310530000000+000003DENTYNE ICE GUM 000022005 ^M
010800650012546310510000000+000001DENTYNE ICE GUM 000022005 ^M
010800650034000003470000000+000006YORK MINT TIN 000012405 ^M
010800650022000004660000000+000009ALTD CHC DP MNTS 000018005 ^M
010800650022000004670000000+000012ALTOID DK CHC CINN000018005 ^M
010800650022000159330000000+000008ALTOIDS MINTS DP 1000012205 ^M

after script is done i want my file to look like:

Firstlineofflatfile20080220ADDEDTEXTHERE
010800650022000003190000000+000002ECLPSE BIG E SPEAR000022505 ^M
010800650034000003470000000+000006YORK MINT TIN 000012405 ^M
010800650012546310530000000+000003DENTYNE ICE GUM 000022005 ^M
010800650012546310510000000+000001DENTYNE ICE GUM 000022005 ^M
010800650034000003470000000+000006YORK MINT TIN 000012405 ^M
010800650022000004660000000+000009ALTD CHC DP MNTS 000018005 ^M
010800650022000004670000000+000012ALTOID DK CHC CINN000018005 ^M
010800650022000159330000000+000008ALTOIDS MINTS DP 1000012205 ^M

Thanks
Re: Changing First line in existing Flat file [message #300253 is a reply to message #300251] Thu, 14 February 2008 14:09 Go to previous message
Michel Cadot
Messages: 68624
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
And how is this an Oracle question?
Post in a Unix forum.

Regards
Michel
Previous Topic: REFORMATING FILE
Next Topic: Passing Parameter to stored procedures from unix
Goto Forum:
  


Current Time: Thu Mar 28 03:48:03 CDT 2024