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


Groups > linux.debian.user > #225356

Re: About /var/log/dpgk.log

From The Wanderer <wanderer@fastmail.fm>
Newsgroups linux.debian.user
Subject Re: About /var/log/dpgk.log
Date 2020-07-27 17:50 +0200
Message-ID <Axdy2-7W7-1@gated-at.bofh.it> (permalink)
References (8 earlier) <Axb3b-6zL-7@gated-at.bofh.it> <AxbPA-6Qv-17@gated-at.bofh.it> <AxbZf-799-1@gated-at.bofh.it> <AxciC-7fE-9@gated-at.bofh.it> <Axcsj-7j9-29@gated-at.bofh.it>
Organization This space intentionally left blank.

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On 2020-07-27 at 10:37, The Wanderer wrote:

> What you want to do instead is to run this exact latter command, and
> pass the output of that into the 'aptitude purge' command.

> Try:
> 
> $ aptitude purge $(grep "2020-07-23.*.install " /var/log/dpkg.log | awk
> '{ print $4 }' | tr '\n' ' ')
> 
> and see what you get.

Turns out that the 'tr' part can be dropped as well; the subshell
redirection is smart enough for the newlines to be processed correctly.
All you need to do with the output from grep is reduce it to only column 4.

I habitually do that via e.g. "cut -d ' ' -f 4" instead of "awk {print
$4}", but the result should be the same, and awk is more versatile.

-- 
   The Wanderer

The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man.         -- George Bernard Shaw

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


Thread

About /var/log/dpgk.log Rodolfo Medina <rodolfo.medina@gmail.com> - 2020-07-25 21:50 +0200
  Re: About /var/log/dpgk.log <tomas@tuxteam.de> - 2020-07-25 22:10 +0200
    Re: About /var/log/dpgk.log The Wanderer <wanderer@fastmail.fm> - 2020-07-25 22:30 +0200
      Re: About /var/log/dpgk.log <tomas@tuxteam.de> - 2020-07-25 23:00 +0200
      Re: About /var/log/dpgk.log Sven Joachim <svenjoac@gmx.de> - 2020-07-25 23:00 +0200
        Re: About /var/log/dpgk.log <tomas@tuxteam.de> - 2020-07-25 23:40 +0200
          Re: About /var/log/dpgk.log Rodolfo Medina <rodolfo.medina@gmail.com> - 2020-07-27 14:20 +0200
            Re: About /var/log/dpgk.log Greg Wooledge <wooledg@eeg.ccf.org> - 2020-07-27 14:30 +0200
            Re: About /var/log/dpgk.log The Wanderer <wanderer@fastmail.fm> - 2020-07-27 14:40 +0200
              Re: About /var/log/dpgk.log Rodolfo Medina <rodolfo.medina@gmail.com> - 2020-07-27 15:00 +0200
                Re: About /var/log/dpgk.log The Wanderer <wanderer@fastmail.fm> - 2020-07-27 15:10 +0200
                Re: About /var/log/dpgk.log Rodolfo Medina <rodolfo.medina@gmail.com> - 2020-07-27 16:00 +0200
                Re: About /var/log/dpgk.log The Wanderer <wanderer@fastmail.fm> - 2020-07-27 16:10 +0200
                Re: About /var/log/dpgk.log Rodolfo Medina <rodolfo.medina@gmail.com> - 2020-07-27 16:30 +0200
                Re: About /var/log/dpgk.log The Wanderer <wanderer@fastmail.fm> - 2020-07-27 16:40 +0200
                Re: About /var/log/dpgk.log The Wanderer <wanderer@fastmail.fm> - 2020-07-27 17:50 +0200
                Re: About /var/log/dpgk.log Rodolfo Medina <rodolfo.medina@gmail.com> - 2020-07-28 01:10 +0200
                Re: About /var/log/dpgk.log The Wanderer <wanderer@fastmail.fm> - 2020-07-28 01:20 +0200
                Re: About /var/log/dpgk.log Rodolfo Medina <rodolfo.medina@gmail.com> - 2020-07-28 13:30 +0200
                Re: About /var/log/dpgk.log David Wright <deblis@lionunicorn.co.uk> - 2020-07-27 17:40 +0200
                Re: About /var/log/dpgk.log Rodolfo Medina <rodolfo.medina@gmail.com> - 2020-07-27 21:10 +0200
                Re: About /var/log/dpgk.log Greg Wooledge <wooledg@eeg.ccf.org> - 2020-07-27 21:20 +0200
                Re: About /var/log/dpgk.log Rodolfo Medina <rodolfo.medina@gmail.com> - 2020-07-27 21:50 +0200
                Re: About /var/log/dpgk.log Greg Wooledge <wooledg@eeg.ccf.org> - 2020-07-27 21:50 +0200
                Re: About /var/log/dpgk.log Rodolfo Medina <rodolfo.medina@gmail.com> - 2020-07-27 22:20 +0200

csiph-web