[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



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

Attachment: signature.asc
Description: signature


Reply to: