I am expecting 4th column to subracted in both the files and printed it using awk.
cat File1
apple|fiesta|chennai|600
orange|santro|banglore|1400
kiwi|ford|mysore|600
cat File2
grape|fiesta|chennai|400
pine|santro|banglore|600
mango|ford|mysore|600
Awk command used
awk -F'|' 'NR==FNR{c[$2$3]++;next};c[$2$3] > 0' file1 file2
Current Output:
apple|fiesta|chennai|600
orange|santro|banglore|1400
kiwi|ford|mysore|600
Expected output
apple|fiesta|chennai|200
orange|santro|banglore|800
kiwi|ford|mysore|0