Re: what's an equivalent for the following Perl one-liner?

2005-12-23 Thread Nikos Vassiliadis
On Thursday 22 December 2005 00:04, Mikhail Teterin wrote: > 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? Tha

Re: what's an equivalent for the following Perl one-liner?

2005-12-22 Thread Don Hinton
On Thursday 22 December 2005 13:52, Mikhail Teterin wrote: > > Try col(1) or tr(1) to remove the carriage return and then sed to remove > > the spaces. > > Well, yes, but that's a two-stage process. A shame to go through the whole > file twice just because our tools aren't good enough. How about t

Re: what's an equivalent for the following Perl one-liner?

2005-12-22 Thread Mikhail Teterin
> Try col(1) or tr(1) to remove the carriage return and then sed to remove > the spaces. Well, yes, but that's a two-stage process. A shame to go through the whole file twice just because our tools aren't good enough. -mi ___ freebsd-questions@

Re: what's an equivalent for the following Perl one-liner?

2005-12-22 Thread Tijl Coosemans
On Thursday 22 December 2005 20:14, Mikhail Teterin wrote: > четвер 22 грудень 2005 13:32, Dan Nelson Ви написали: > > In the last episode (Dec 21), Mikhail Teterin said: > > > I'd like a sed string, that will remove both the carriage returns > > > and the blanks at eol in one go. Perl appears to r

Re: what's an equivalent for the following Perl one-liner?

2005-12-22 Thread Mikhail Teterin
четвер 22 грудень 2005 13:32, Dan Nelson Ви написали: > In the last episode (Dec 21), Mikhail Teterin said: > > 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,[

Re: what's an equivalent for the following Perl one-liner?

2005-12-22 Thread Dan Nelson
In the last episode (Dec 21), Mikhail Teterin said: > 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!

what's an equivalent for the following Perl one-liner?

2005-12-22 Thread Mikhail Teterin
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 ___ fr