![]() |
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 |
| using sed to conditionally extract stanzas of a file based on a search string | aitayemi | Shell Programming and Scripting | 0 | 11-25-2008 06:16 PM |
| update a file with values from other file in shell bash | teodora | Shell Programming and Scripting | 1 | 07-03-2008 11:39 AM |
| Extract values from log file | wdympcf | Shell Programming and Scripting | 5 | 08-10-2007 03:52 AM |
| Extracting data from text file based on configuration set in config file | suparnbector | Shell Programming and Scripting | 3 | 08-10-2007 02:25 AM |
| I need to extract last column of a file and compare the values | vukkusila | Shell Programming and Scripting | 4 | 08-04-2007 11:21 AM |
|
|
LinkBack | Thread Tools | Search this Thread |
Rating:
|
Display Modes |
|
||||
|
Hello,
I have two files that have delimited entries as shown below. I would like to use either Perl or Shell script to extract all the rows in File 1 corresponding to values in File 2 and output it to another File. File 1 ------- 1 36 24 Object1 2 45 36 Object2 3 96 21 Object3 4 89 32 Object4 5 98 23 Object5 6 99 21 Object6 7 56 21 Object7 File 2 ------- 2 45 36 5 98 23 6 99 21 Thanks, Gussi |
| Bookmarks |
| Tags |
| extract data from textfile, perl |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|