This is the command gbconvtable that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator
gbconvtable - Replace keys with values
Replace keys with values at a given position of the input file. The name of the
dictionary file is provided on the command line with the option 'dictfile'. It is a simple
text file organized in two columns. The first column contains the keys and the second
column the respective values. Obviously the values can be equal, but the keys should be
all different. Data are read from standard input and all fields at position 'pos' are
considered keys of the provided dictionary and replaced with the associated keys. If 'pos'
is not specified it is assumed equal to 1. If 'pos' is larger than the number of fields,
no replacement takes place. If the option 'force' is not set, only those fields which
appears as keys in the dictionary file are replaced.
-d name of the dictionary file
-c position of the column of keys to be replaced
-f forced look-up: substitute provided string for non defined keys
gbconvtable -d dict_file -c 3 -f 'none' < input_file
This program requires awk or gawk.
Use gbconvtable online using onworks.net services