The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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
Apply `chmod` for multiple files through FTP Chanakya.m Shell Programming and Scripting 3 05-22-2009 12:47 PM
Let GID apply to new files in directory linge UNIX for Dummies Questions & Answers 1 06-05-2008 03:28 AM
file name transformation vrms Shell Programming and Scripting 16 05-27-2008 09:49 AM
Event Transformation Services iBot Complex Event Processing RSS News 0 08-24-2007 04:30 PM
Transformation capital letter Dark Angel UNIX for Dummies Questions & Answers 1 01-24-2002 04:17 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-10-2007
HAA HAA is offline
Registered User
  
 

Join Date: Feb 2006
Posts: 24
Apply transformation logic in 2 different files

Transformation logic on column values in two different files,

File A
12345,000,4444, HKD3.5
12346,000,5555, HKD3.5

File B

12345,4444,54321,6666
12346,5555, 64321,7777
12347,5555, 65321,8888


Requirement as below

1.read file A
2. match with File B ie
if (fileA.column1 =fileB.column1 and fileA.column3=fileB.column2) then
new_val1=fileb.column3
new_val2=fileb.column4
end if

I would appreciate for your gr8 help on this.

Thanks and Regards,
HAA
  #2 (permalink)  
Old 07-10-2007
bigearsbilly bigearsbilly is offline
Registered User
  
 

Join Date: Feb 2006
Location: Southern England
Posts: 104
hmm,
try join but you may need to massage the order
of fields
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:20 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0