[Top][All Lists]

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

Re: [PATCH] terminal split

From: Yoshinori K. Okuji
Subject: Re: [PATCH] terminal split
Date: Sun, 9 Nov 2008 08:22:39 +0100
User-agent: KMail/1.9.9

On Friday 07 November 2008 20:07:07 Robert Millan wrote:
> On Thu, Nov 06, 2008 at 06:20:57PM +0100, Yoshinori K. Okuji wrote:
> > Also, a similar technique can be used to implement "getting an output as
> > a string". For example:
> >
> >   # Use the same password as the super user.
> >   set password=$(sed -ne '/^root:/{s/root:\([^:]*\).*/\1/;p}'
> > /etc/shadow)
> This would work much better in grub-mkconfig.  You don't want to implement
> (or port) sed do you? ;-)

I don't want to duplicate information when they should be indentical. 
Synchronization is a nightmare. sed is just an example. You can use 'cut' in 
this case as well.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]