Article View: pl.comp.os.linux
Article #904738Re: Problem z sed
From: jn
Date: Sun, 06 Jun 2021 21:23
Date: Sun, 06 Jun 2021 21:23
41 lines
2051 bytes
2051 bytes
W dniu 06.06.2021 o 15:16, jn pisze: > W dniu 06.06.2021 o 14:21, Jacek Maciejewski pisze: >> Czy jest jakieś zaklęcie które pozwoli automagicznie usunąć >> wszystkie te pakiety za jednym zamachem albo chociaż je jakoś wylistować >> bym je mógł usunąć po jednej sztuce? >> > > To może zależeć od zarządcy pakietów jakiego używasz. > $ tail /var/log/apt/history.log Commandline: /usr/sbin/synaptic Install: optipng:amd64 (0.7.7-1) End-Date: 2021-06-06 15:48:41 Start-Date: 2021-06-06 15:55:22 Commandline: /usr/sbin/synaptic Purge: optipng:amd64 (0.7.7-1) End-Date: 2021-06-06 15:55:24 ------------------------------------------------ $ tail /var/log/apt/history.log | sed 's/:amd64//g' Commandline: /usr/sbin/synaptic Install: optipng (0.7.7-1) End-Date: 2021-06-06 15:48:41 Start-Date: 2021-06-06 15:55:22 Commandline: /usr/sbin/synaptic Purge: optipng (0.7.7-1) End-Date: 2021-06-06 15:55:24 ------------------------------------------------- Nie umiem zmusić sed do usunięcia nawiasów () wraz z zawartością.
Technical Details
Message-ID:
<s9jec8$42g$1$pk@news.chmurka.net>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.chmurka.net!.POSTED.apn-31-0-22-240.dynamic.gprs.plus.pl!not-for-mailReferences:
<1fmviwwdpucgq$.m0xwrf6k91f6$.dlg@40tude.net> <s9ihqv$kf3$1$pk@news.chmurka.net>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.chmurka.net!.POSTED.apn-31-0-22-240.dynamic.gprs.plus.pl!not-for-mail From: jn <jn@mail.invalid> Newsgroups: pl.comp.os.linux Subject: Re: Problem z sed Date: Sun, 6 Jun 2021 23:23:20 +0200 Organization: news.chmurka.net Message-ID: <s9jec8$42g$1$pk@news.chmurka.net> References: <1fmviwwdpucgq$.m0xwrf6k91f6$.dlg@40tude.net> <s9ihqv$kf3$1$pk@news.chmurka.net> NNTP-Posting-Host: apn-31-0-22-240.dynamic.gprs.plus.pl Mime-Version: 1.0 Injection-Date: Sun, 6 Jun 2021 21:23:21 +0000 (UTC) Injection-Info: news.chmurka.net; posting-account="pk"; posting-host="apn-31-0-22-240.dynamic.gprs.plus.pl:31.0.22.240"; logging-data="4176"; mail-complaints-to="abuse-news.(at).chmurka.net" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 In-Reply-To: <s9ihqv$kf3$1$pk@news.chmurka.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit