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.
Regards,
Okuji
_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel