auto decode a value to different value

Okay,

This is not something I've tried to do before, but what I want (need) to do is when a value is read in it gets changed to the value needed.

I've been given a list of ids that I need to check against the ids I have in my system, but as is the case we don't have the same naming convention (though Id's relate to same location).

There is about 30 id's, approx 30% will need tweaking. I don't really want to do test statements for all that need changing. Is there a way (easy) method that this can be done.

SD1 = SDR
TH1 = THU
TT1 = TTR

The id's will be in a text file, one id per line I'll then do a grep against some other files to determine we have matching entries or missing entries. Nice and simple script really.

Any ideas would be massively appreciated.

Second post in a day (morning)...... :o

Cheers,
Neil

Please show us examples on input and output files.

Jean-Pierre.

nhatch,
See if this helps you.
Both are files:
list_file: File with ids to be searched.
master_file: File with all ids.

egrep  -f  list_file  master_file