in reply to Getting rid of $/ on linux

You claim it's not working. But you don't say why. Your code isn't cut-paste-runnable, and you couldn't be bothered to include your output.

What is the output, and what do you expect the output to be?