in reply to Re^4: Whats wrong in this code?
in thread Whats wrong in this code?

Yes, you're right, I spoke too quickly. tr/// can possibly replace the regex within the grep block, but can't replace grep itself.