@Edent one minor note: tr takes an input file so you could drop the cat & pipe, i think?