in reply to One Liner works on SUN but not on Linux??
This should work. If it doesn't it is almost certainly user error. I'd double check your quoting first. If, for instance, you used double quotes around your code, you would see that behavior (in both cases, I think) in the second case.
BTW, not that it matters, but you shouldn't need a /g on your first substitution.
-sauoq "My two cents aren't worth a dime.";
|
|---|