For what it's worth, here's another way to do the transliteration of 0x0a to 0x0d with the 'tr' (transliterate) utility: tr '\012' '\015' < MATRIX.TXT > MATRIXA.TXT Note that the numbers here are in octal. -- John.