![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Command nee to cut the record | sreenusola | UNIX for Advanced & Expert Users | 6 | 08-28-2008 06:11 PM |
| fl command - set record length | Tom Siegel | Shell Programming and Scripting | 2 | 07-17-2006 09:50 AM |
| sql insert command | abey | Shell Programming and Scripting | 2 | 05-19-2006 11:56 AM |
| How to insert a record in fixed width flatfile | limou | Shell Programming and Scripting | 1 | 03-13-2006 04:55 PM |
| awk command for INSERT statement | nattynatty | Shell Programming and Scripting | 4 | 05-10-2002 02:11 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
command to insert a record at a particular loaction
Hi,
Is there any command to insert a line in between two lines? My input data is as below: 1|ETG|63121387883|Alternate|Y 3|79.58|||GBP|| 4|001137001 4|0011372 5|1021701 5|1021901 1|ETG|63121387884|Alternate|Y 3|79.58|||GBP|| 4|001137001 5|1021702 5|1021802 1|ETG|63128363077|Alternate|Y 2|EN_GB||Electrogalvanize 0.5 m2 ( Renault ) 2|FR_GB||Electrogalvanize 0.5 m2 ( Renault ) 3|88.51|||GBP|| 4|001137001 4|001137002 5|1021901 5|7040500 1|ETG|63128363078|Alternate|Y 3|88.51|||GBP|| 4|001137001 5|1021702 5|1021722 1|ETG|63128363079|Alternate|Y 2|EN_GB||Electrogalvanize 4|001137005 5|2021901 5|8040500 I need to insert a record (2|||) only in between thoes records marked in red My desired output is as below : 1|ETG|63121387883|Alternate|Y 2||| 3|79.58|||GBP|| 4|001137001 4|0011372 5|1021701 5|1021901 1|ETG|63121387884|Alternate|Y 2||| 3|79.58|||GBP|| 4|001137001 5|1021702 5|1021802 1|ETG|63128363077|Alternate|Y 2|EN_GB||Electrogalvanize 0.5 m2 ( Renault ) 2|FR_GB||Electrogalvanize 0.5 m2 ( Renault ) 3|88.51|||GBP|| 4|001137001 4|001137002 5|1021901 5|7040500 1|ETG|63128363078|Alternate|Y 2||| 3|88.51|||GBP|| 4|001137001 5|1021702 5|1021722 1|ETG|63128363079|Alternate|Y 2|EN_GB||Electrogalvanize 4|001137005 5|2021901 5|8040500 can any one help me in this regard? Thanks in advance |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|