Date: Wed, 21 Dec 2005 17:04:49 -0500 From: Mikhail Teterin <mi+mx@aldan.algebra.com> To: freebsd-questions@freebsd.org Subject: what's an equivalent for the following Perl one-liner? Message-ID: <200512211704.49530.mi%2Bmx@aldan.algebra.com>
next in thread | raw e-mail | index | archive | help
I'd like a sed string, that will remove both the carriage returns and the blanks at eol in one go. Perl appears to recognize the \r character and DTRT: perl -p -e 's,[ \r]+$,,' < in > out What's the sed's equivalent? Thanks! -mi
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200512211704.49530.mi%2Bmx>