![]() |
|
|
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 |
| How to remove a particular record from a file? | kanu_pathak | Shell Programming and Scripting | 9 | 07-22-2008 10:34 AM |
| Remove First and Last Record from a file | ravikuc | UNIX for Dummies Questions & Answers | 1 | 10-11-2007 04:35 AM |
| splitting a record and adding a record to a file | rsolap | Shell Programming and Scripting | 1 | 08-13-2007 02:58 PM |
| command to remove last record on file | mheinen | UNIX for Dummies Questions & Answers | 4 | 01-09-2007 04:39 PM |
| remove duplicated xml record in a file under unix | happyv | Shell Programming and Scripting | 8 | 09-20-2006 02:36 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
To remove the record from a file
Hi ,
In need to remove the record marked in red My input 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||| 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|63128363079|Alternate|Y 2|EN_GB||Electrogalvanize 2||| 4|001137005 5|2021901 5|8040500 My 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|63128363079|Alternate|Y 2|EN_GB||Electrogalvanize 4|001137005 5|2021901 5|8040500 Please let me if there are any commands for removing them.Any suggestions woild be hwlpful Thanks in advance |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|