![]() |
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 |
| for loop in perl | priyas | Shell Programming and Scripting | 5 | 05-01-2009 01:02 PM |
| help needed with creating challenging bash script with creating directories | I-1 | Shell Programming and Scripting | 7 | 04-29-2009 05:33 AM |
| creating a file using Perl | chriss_58 | Shell Programming and Scripting | 1 | 06-03-2008 07:41 AM |
| for loop using the value '01' in PERL | dangral | Shell Programming and Scripting | 9 | 10-01-2003 03:34 PM |
| help with perl while loop | methos | Shell Programming and Scripting | 2 | 04-08-2002 03:30 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Creating loop for a script -Perl
Hi Guyz
I designed a script that can compare 2 columns(values) of single file and gives the closest numbers to the first column by comparing the numbers in first column with second and it works in a single file. Quote:
Objective1. Make a loop that can coonect the same symbols of 2 files and runs the script for closest numbers in those values. for Example A-X in INPUT1 1st file has 100 - The script has to search every A-X in INPUT2 2nd File and take the closest of those values i.e A-X90 Quote:
I'm here by including my script and examples of input and output files to make it easy for you to understand. Thanx in advance and your valuable time. Hope I'll get clue. Last edited by repinementer; 05-09-2009 at 12:49 AM.. |
|
||||
|
Script for Closest numbers in a single file
Script may be useful for further step
Quote:
|
|
||||
|
Hi
Hi
there is a problem If the first column contain A1 more than 1 time??(There should be all the values in column 1) Input1 A1tab 20 A1tab30 A1tab50 A2tab50 A2tab90 A3tab80 INPUT2 A1tab30 A2tab45 A4tab100 OUTPUT A1tab30 A1tab30 A1tab30 A2tab45 A2tab45 |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|