![]() |
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 |
| 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 |
| Help me with parsing this file | eamani_sun | Shell Programming and Scripting | 2 | 05-16-2008 03:39 PM |
| awk and file parsing | devtakh | Shell Programming and Scripting | 4 | 05-06-2008 11:13 AM |
| Parsing xml file using Sed | kapilkinha | UNIX for Advanced & Expert Users | 3 | 04-08-2008 09:43 AM |
| Parsing a csv file | chiru_h | Shell Programming and Scripting | 6 | 02-12-2008 09:33 AM |
| parsing file through awk | bbeugie | Shell Programming and Scripting | 13 | 08-22-2006 01:21 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
File Parsing
Hi All,
I have a couple of files ( ascii ) with the following data File 1 #lport1:dc1:lport2:dc2 - All records were delimited by : 6300:ADEF12:6305:ATNE59 3411:EGFE31:3499:GDEF21 . . . . . . . . total of 55,000 Records File 2 #seqno:lport1:id:dlc1:vid:lport2:nni:dc2:ci – All records delimited by : 60568:3411:98:EGFE31:965:3499:3799:GDEF21:432 . . . . . . . . . . . . . . . . . . total of 58,000 Records I need to Compare lport1, dc1, lport2, dc2 values of file1 with lport1, dc1, lport2, dc2 values of file2 and if there is a match, I need to write the entire line in file2 to another file. I tried writing a Perl script under solaris 2.5.8 which took almost 6 hours to finish. Could anyone of you help me in getting this task run pretty fast i.e, less than 15 minutes using awk/shell script.. Thanks in Advance. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|