#!/bin/bashawk -F, '{print $0, NR==1?"c4":($NF==$(NF-1))?"match":"mismatch"}' OFS=,
id,name 1,1 10,2
id,name,c4 1,1,match 10,2,mismatch
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!