On Thu, May 21, 2015 at 08:49:04AM -0300, Fernando de Oliveira wrote:
> On 18-05-2015 06:52, Fernando de Oliveira wrote:
> > On 17-05-2015 23:07, Bruce Dubbs wrote:
> >> Ken Moffat wrote:
> >>> On Mon, May 18, 2015 at 01:23:52AM +0100, Ken Moffat wrote:
> >>>>   I suppose I could use 'grep -e' : didn't think of that!
> >>>>
> >>> Wrong, of course (look at man grep or the egrep script to spot the
> >>> error)
> >>
> >> I didn't look.  grep -E  ?
> > 
> > Neither did I.
> > 
> > I use it almost every day:
> > 
> > grep -vE 'html|archive|blfs-full'
> > 
> > to avoid these results when grepping something in BLFS/trunk/BOOK.
> > 
> > Another daily use:
> > 
> > for i in usr/bin/*
> > do
> >   echo $i && ldd $i | grep -E 'nspr|libplc|libplds'
> > done; unset i
> > 
> > where I change 'nspr|libplc|libplds' to meet the needs of present
> > package being analysed.
> 
> FWIW, this post was meant as a joke between editors.
> 
> I never compare Ken knowledge with mine. You, Ken, have much deeper and
> more extensive knowledge than me, in these matters. This was a rare
> occasion where I daily use some basic knowledge that you know, but had
> just forgotten the option was with capital E.
> 
> Bruce's post surely was a joke, too.
> 
Personally, I found the 'foo|bar|baz' style of your example
educational, and that is why we are here.

And I don't have particularly extensive knowledge, but I have been
lucky enough to be able to devote time to LFS for a few years, and
I'm slowly learning from my errors.  We do what we can, we all have
different strengths.

Going back to my scripts, which is where this started, I think they
are now *adequately* logging the installed and modified files (and
any that were deleted - in a running system, those are normally not
related to the build).  I now use a hack to not try to log modified
or deleted files when installing /etc/passwd and /etc/groups (still
don't understand those issues) and I manage to record /mnt/lfs/etc
as created (I do these before entering chroot, so I can run that in
one go) although passwd is correctly shown as '/etc/passwd'.

My big change this week has been using comm (I'd never heard of it
before) to compare the results of 'ls' (directories) and 'ls -l'
(files, to pick up modified files.  Oh, and in British Summertime
(UTC +1) the 'ls -l output' shows different times before and after
coreutils is installed, both in chapter 5 and in chapter 6.  Solved
by 'find ... | grep -v ... | TZ=UTC ls -l >listing'.  Very
educational for me, and a lot of false ideas along the way.

ĸen
-- 
Nanny Ogg usually went to bed early. After all, she was an old lady.
Sometimes she went to bed as early as 6 a.m.
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to