![]() |
|
|
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 |
| Append text at end of the first line in a file | catgovind | Shell Programming and Scripting | 7 | 05-01-2008 08:33 AM |
| Append to end of each line of file without a temp file. | rorey_breaker | Shell Programming and Scripting | 4 | 04-03-2008 11:11 AM |
| How to Append a Value to each line of the file | dsshishya | UNIX for Dummies Questions & Answers | 11 | 03-21-2008 02:48 PM |
| Append a field to the end of each line of a file based on searching another file. | ultimate | Shell Programming and Scripting | 2 | 03-29-2005 11:21 AM |
| Large file need to append to each line | r1500 | UNIX for Dummies Questions & Answers | 1 | 10-14-2003 11:48 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Dear all,
i have a problem... i have 2 files first one is A.txt 5268345674 ABCDEF1 ABC 10121 EXT 5265087087 ABCDEF3 ABC 10221 EXT 5268979998 ABCDEF4 ABC 10321 EXT second one is B.txt 10121 52658450 R1MEXI2 0 10221 52653889 R1SLRC2 0 10321 52657319 R1SAFE1 0 now i want the output like 5268345674 ABCDEF1 ABC 10121 EXT 52658450 R1MEXI2 0 5265087087 ABCDEF3 ABC 10221 EXT 52653889 R1SLRC2 0 5268979998 ABCDEF4 ABC 10321 EXT 52657319 R1SAFE1 0 in the output file only the first field from B.txt i want to remove... Like the above output using awk or shell or sed etc Thanks in advance Regards, Pankaj |
|
||||
|
Quote:
where -1 option specifies the first file and the argument 4 represents your column to be matched with the second file. -2 option specifies the second file and argument 1 represents your column to be matched and -0 option is just to print the fields from the respective file |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|