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


Groups > linux.debian.bugs.dist > #1231786

Bug#1095160: Disable messages when the apt command is used with pipe

From Johannes Schauer Marin Rodrigues <josch@debian.org>
Newsgroups linux.debian.bugs.dist
Subject Bug#1095160: Disable messages when the apt command is used with pipe
Date 2025-02-04 20:20 +0100
Message-ID <KcwCJ-eoS1-5@gated-at.bofh.it> (permalink)
References <KcuAV-enyk-7@gated-at.bofh.it> <KctER-emWA-5@gated-at.bofh.it> <KcuAV-enyk-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

Hi,

On Tue, 4 Feb 2025 16:57:38 -0000 Pierre Tomon <pierretom+23@ik.me> wrote:
> Yes I need to pipe it, I want to do things like: apt list '~o' | cut -d '/'
> -f1 | tr '\n' ' '
> 
> I won't those useless messages.

the message is useful. It tells you that you are doing it wrong. Why don't you
use a tool with an output format that is designed to be consumed by scripts?

    apt-cache show "~o" | sed -ne 's/^Package: //p' | xargs

cheers, josch

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


Thread

Bug#1095160: Disable messages when the apt command is used with pipe Pierre Tomon <pierretom+23@ik.me> - 2025-02-04 17:10 +0100
  Bug#1095160: Disable messages when the apt command is used with pipe Pierre Tomon <pierretom+23@ik.me> - 2025-02-04 18:10 +0100
    Bug#1095160: Disable messages when the apt command is used with pipe Johannes Schauer Marin Rodrigues <josch@debian.org> - 2025-02-04 20:20 +0100
  Bug#1095160: Disable messages when the apt command is used with pipe Pierre Tomon <pierretom+23@ik.me> - 2025-02-05 13:30 +0100
    Bug#1095160: Disable messages when the apt command is used with pipe Johannes Schauer Marin Rodrigues <josch@debian.org> - 2025-02-05 14:30 +0100

csiph-web