![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Editing a File | ramkriz | Shell Programming and Scripting | 1 | 09-19-2008 09:22 AM |
| file editing | ambavaram | Linux | 0 | 06-24-2008 07:11 PM |
| How to editing a txt file | aaabbb123123 | Shell Programming and Scripting | 3 | 03-07-2008 12:31 AM |
| Editing file | rahul303 | Shell Programming and Scripting | 4 | 09-23-2007 11:49 PM |
| Help editing a file | Docboyeee | Shell Programming and Scripting | 8 | 05-22-2002 10:22 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
need help in file editing:-
I have 2 files:-
file1 and file2 file1 SEED RPTT TST8 file2 SEED:db1:Y RPTT:db2:Y SED8:db2:N TST8:db:Y TRN8:db:N CNV8:db:Y TEST:db:Y I have to change third field of file2 to "y" for every entry in file1 matches first filed of file 2 and rest to N I want file 2 like :- as file 1 has (SEED,RPTT,TST8) so in file2 I want to do third field "y" for those entries(which is first field in file2). In rest I want to convert to "N" SEED:db1:Y RPTT:db2:Y SED8:db2:N TST8:db:Y TRN8:db:N CNV8:db:N TEST:db:N |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|