![]() |
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 |
| "<< Unmatched" in ksh script using sftp | michaelak28 | Shell Programming and Scripting | 6 | 08-28-2008 08:49 AM |
| else unmatched | b.hamilton | Shell Programming and Scripting | 7 | 10-10-2007 05:03 AM |
| List to columns and awk help | baghera | Shell Programming and Scripting | 17 | 08-28-2007 08:20 AM |
| Delete unmatched data | nazri76 | Shell Programming and Scripting | 5 | 07-16-2006 06:41 AM |
| Unmatched 'then' | akpopa | UNIX for Dummies Questions & Answers | 22 | 09-05-2001 09:29 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
list of unmatched columns
Hi ,
I have two files want to compare and list of column values and postion which are not matched between two files,I can use diff but it will return rows from two files which are matched and unmatched columns.I wrote the below script but not working. f1=$1 f2=$2 for i in 1 do file1=`cat $f1 |awk -v col=$i '{print $col}'` file2=`cat $f2 |awk -v col=$i '{print $col}'` if [ "$file1" != "$file2" ] ; then echo $i ":" $file1 ":" $file2 ":" else echo "records are matches" fi done Thanks and Regards, MR |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|