Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #236375

Re: question regarding post-installed packages

From David Wright <deblis@lionunicorn.co.uk>
Newsgroups linux.debian.user
Subject Re: question regarding post-installed packages
Date 2021-06-23 17:00 +0200
Message-ID <Ctcw9-7Al-3@gated-at.bofh.it> (permalink)
References (1 earlier) <CsPSW-2nj-3@gated-at.bofh.it> <CsQci-2J5-3@gated-at.bofh.it> <Ct2dr-1lK-3@gated-at.bofh.it> <Ct5uF-3vL-3@gated-at.bofh.it> <Ct67n-3ZP-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed 23 Jun 2021 at 08:49:42 (+0100), mick crane wrote:
> On 2021-06-23 08:22, tomas@tuxteam.de wrote:
> > On Wed, Jun 23, 2021 at 06:51:39AM +0300, Andrei POPESCU wrote:
> > 
> > [...]
> > 
> > > 	comm -23 <(apt-mark showmanual | sort -u) <(gzip -dc
> > > /var/log/installer/initial-status.gz | sed -n 's/^Package:
> > > //p' | sort -u)
> > 
> > > Command substitution without '$'? I must be missing something
> > > and would
> > > appreciate a pointer.
> > 
> > As David pointed out (as a pointer), the <(...) is a bashism for
> > "pretend this is
> > a file name whose content is provided by the enclosed command's
> > output".
> > 
> > Perhaps more readable in the symmetrical variant
> > 
> >   diff -u <(ls dir1) <(ls dir2)
> > 
> > Very handy.
> > 
> does not the excellent guide also say not to try to do anything with
> the output of "ls" ?

That would make ls effectively useless. No, the output from ls is for
parsing by eyeball, not by scripts. That's what's important.
In the example, diff doesn't parse the output, it just presents the
differences between two slabs of text for your eyeball to parse.

Cheers,
David.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

question regarding post-installed packages Christian <abelschreck3@freenet.de> - 2021-06-22 15:40 +0200
  Re: question regarding post-installed packages Hans <hans.ullrich@loop.de> - 2021-06-22 16:00 +0200
    Re: question regarding post-installed packages Christian <abelschreck3@freenet.de> - 2021-06-22 16:20 +0200
      Re: question regarding post-installed packages Hans <hans.ullrich@loop.de> - 2021-06-22 16:40 +0200
        Re: question regarding post-installed packages Christian <abelschreck3@freenet.de> - 2021-06-22 17:10 +0200
  Re: question regarding post-installed packages Andrei POPESCU <andreimpopescu@gmail.com> - 2021-06-22 16:50 +0200
    Re: question regarding post-installed packages Greg Wooledge <greg@wooledge.org> - 2021-06-22 17:10 +0200
      Re: question regarding post-installed packages Andrei POPESCU <andreimpopescu@gmail.com> - 2021-06-23 06:00 +0200
        Re: question regarding post-installed packages David <bouncingcats@gmail.com> - 2021-06-23 09:10 +0200
          Re: question regarding post-installed packages Andrei POPESCU <andreimpopescu@gmail.com> - 2021-06-23 14:50 +0200
        Re: question regarding post-installed packages <tomas@tuxteam.de> - 2021-06-23 09:30 +0200
          Re: question regarding post-installed packages <tomas@tuxteam.de> - 2021-06-23 10:10 +0200
          Re: question regarding post-installed packages Andrei POPESCU <andreimpopescu@gmail.com> - 2021-06-23 14:50 +0200
          Re: question regarding post-installed packages David Wright <deblis@lionunicorn.co.uk> - 2021-06-23 17:00 +0200
    Re: question regarding post-installed packages Christian <abelschreck3@freenet.de> - 2021-06-22 17:10 +0200
      Re: question regarding post-installed packages Greg Wooledge <greg@wooledge.org> - 2021-06-22 17:40 +0200
        Re: question regarding post-installed packages Andrei POPESCU <andreimpopescu@gmail.com> - 2021-06-23 05:40 +0200

csiph-web