Help me
Hi All
Plz help me in doing the following task I have two files FILE A and FILE B Both files contains two columns Column1 and Column2 The format is as follows Column1 Column2 A 1 B 2 C 3 I need to make a script that will do the following Pick the first line from file A and compare it with the same name in file 2 For e.g Suppose FILE A contains "A" in 1st column and its value is 1 in column2 So the script will search for "A" in FILE B and it will compare the value of A in FILE B Three cases are possible 1)FILE B does not contain "A" 2)FILE B contains A but its value mismatches 3)FILE B contains A and has the same value as in FILE A In this way it will search for all the lines in FILE A and will return the output in a FILE C in the following format Column1 Value in FILE A VALUE in FILE B REMARK A 1 1 same B 2 3 mismatch C 3 - not found |
Is this homework by any chance?
jdk |
Its not homework
Its just a minute part of a big script that I am developing I dunno how I got stuck out there Anyways I have resolved the same Thanks for your support |
Next time, please phrase your question a bit different. I also had the feeling that this might have been homework. The main reason is that you
Hope this helps for your next question. |
All times are GMT -5. The time now is 11:27 PM. |