Re: right justify each line?

"Matej Kollar [email protected] [sed-users]" <[email protected]>
Newsgroups gmane.editors.sed.user
Message-ID <20151114183111.GQ23039@quoth>
Whould this help?


    sed 's/^\(.*[^ ]\)\([ ]*\)$/\2\1/'


... it takes everything from the beginning of
the line till the last non-space characters
as group one and rest (spaces) as group two.


Matej.
-- 
\f.(\x.f(xx))(\x.f(xx))
(lambda f: (lambda x: lambda: f(x(x)))(lambda x: lambda: f(x(x))))




[Non-text portions of this message have been removed]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.