Lars Eighner wrote: > > On Fri, 9 Oct 2009, Gary Kline wrote: > >> >> Whenever I save a wordpeocessoe file [OOo, say] into a >> text file, I get a slew of hex codes to indicate the char to be >> used. I'm looking for a perl one-liner or script to translate >> hex back into ', ", -- [that's a dash), and so forth. Why does >> this fail to trans the hex code to an apostrophe? >> >> perl -pi.bak -e 's/\xe2\x80\x99/'/g' > > You're kidding, aren't you?
Have you not ever overlooked something like a misplaced apostrophe? The OP came with nearly workable code, in which I can tell that he spent some time researching and toying with before asking for help. > And finally, there are tons of perl forums, > mailing lists, and newsgroups. Pick one to ask perl questions. Why? The OP is not looking for help identifying why a complex subroutine is doing something unexpected. He is asking how to modify portions of his file system on FreeBSD using the command line. Would you have been so harsh if he was asking how to do it with sed? awk? I for one welcome these Perl questions. I've asked them here before, and for simple tasks, will ask them here again. Steve _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"