[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Linux-31] [SED] Numéro de ligne en préfixe
Re-Re-
Le 26/02/2020 à 22:23, Pierre ESTREM (via linux-31 Mailing List) a écrit :
> Cela affiche dans l'ordre les noms des cartes audio et leurs profiles
> associés.
Une commande qui le fait aussi (il manque le terme "output" en sortie,
mais peut-être n'est-ce pas important ?) :
$ pacmd list-cards | grep -Pno '^\t{1,2}(name|output): *<*\K[^>:]*'
3:alsa_card.pci-0000_00_1f.3
25:analog-stereo
26:analog-stereo+input
27:hdmi-stereo
28:hdmi-stereo+input
29:hdmi-surround
30:hdmi-surround+input
;-))
JP