csvrecode.jar somefiletopatch.csv somefileoffromtopairs.csv -miss unknown 0 3 2 rem values that cannot be translated by the file of pairs will be replaced by the string unknown, rem or whatever word comes after -miss rem If you leave out the -miss parameter, the old value will be left alone if it cannot be matched.