perl substitution question

perryh at pluto.rain.com perryh at pluto.rain.com
Sun Jan 14 05:45:23 UTC 2007


> cat k | tr "\200" "\"" | tr "\235" "\"" > k.new

Or, skipping the unnecessary cat and invoking tr only once

tr "\200\235" "\"\"" < k > k.new


More information about the freebsd-questions mailing list