![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Finding tables from each script | subrat | Shell Programming and Scripting | 2 | 06-17-2008 12:39 AM |
| Converting tables of row data into columns of tables | justthisguy | Shell Programming and Scripting | 7 | 07-16-2007 01:42 PM |
| How to compare the dates in shell script | vaji | Shell Programming and Scripting | 9 | 02-27-2007 09:34 PM |
| use shell scripts to update tables from databases | wannabegeek | Shell Programming and Scripting | 0 | 07-03-2006 02:27 PM |
| shell script cant recognize if else compare | jaseloh | Shell Programming and Scripting | 6 | 12-06-2005 08:34 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
compare two tables using shell script
Hi,
I want to compare two tables fieldwise using shell script. Can anyone help me regarding the same. The approach which i tried is to first move the two tables in simple txt file where each field is now seperated by space. But i can't retrive each field with "space" as a seperator b'coz there are some fields like say "Description" which have content with spaces for ex. "[X] or more external movement" is the value in that field. Thus i cannot use space as a seperator. Can any one help me in seperating each field and then compare that two files i.e two tables.. Thanks, Durwas |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
There are simple database command to find the difference.
Example: if you are using oracle you can use the command: select * from A minus select * from B; (A and B be the table name) ... from shell script if you want to find : you would need to think of some delimeter which doesn't occur in your table data... |
|||
| Google The UNIX and Linux Forums |