what I have now:
Code:
$ cat f1
abc:3424
addf:4523
fsfs:2354
$ cat f2
abc:3535
fsfs:2354
$ awk -F\: '{print $1}' f1 f2|sort -u|while read a;do echo "$a :: `awk -F\: -vb=$a '$1 == b {print $2}' f1` : `awk -F\: -vc=$a '$1 == c {print $2}' f2`";done
[red]abc :: 3424 : 3535
addf :: 4523 :
fsfs :: 2354 : 2354[/red]
$
and what I would like to have on output:
Code:
[red]abc :: 3424 : 3535
addf :: 4523 : -
fsfs :: identical : identical[/red]