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? Thanks!
I
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
___
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!
sed -E
четвер 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,[ \r]+$,,'
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 recognize
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
___
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 this: