Mailing List Archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Re: bash question

On Tue, 2003-02-18 at 22:58, Tobias Diedrich wrote:
> bruno raoult wrote:
> > Just by googling 5 minutes, I found this solution, which works (i.e. it
> > merges lines 1 & 2).
> > 
> > sed -e "1 N;s/\n/ /"
> Interesting. I would not have this expected to work because
> sed -e 's/\n/ /'
> does nothing, but it actually does work...

The 'N' is the key. In fact my answer is more about RTFM than sed
itself. I found it in 5 minutes, including my own tests.
What means RTFM in that case, in this thread (as it was quite hot)?

I *absolutely* know that a few years ago, I was unable to find the right
manual for many commands or system calls.
I can today, and I try to help anybody to get answers. Even trivial

Sometimes I am angry (a few weeks ago on this list, if you remember),
but for minutes only. I apologize, generally, when I realize that, for
me, the beginner is always right, even if I feel unhappy to spend time
for easy stuff.

Keep cool!


GPG Key: 653514E5 (
Clothes make the man.  Naked people have little or no influence on
   -- Mark Twain

Attachment: signature.asc
Description: This is a digitally signed message part

Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links