On Tue, Nov 12, 2019 at 11:27:28AM +0300, Anatoly Pugachev wrote: > On Wed, Nov 6, 2019 at 11:52 AM Karel Zak <kzak@xxxxxxxxxx> wrote: > >> On Wed, Nov 06, 2019 at 09:02:56AM +0100, Michal Suchánek wrote: > > > > First off you need to explain it to all authors of all random scripts > > > > out there. > > > > That's what I'm doing for years :) > > considering lsblk / findmnt , how they are supposed to replace blkid > in the following example (taken from os-prober): > > output="$(blkid -o device -t LABEL="$1")" || return 1 > > i wasn't able to find lsblk alternative to match things (label, uuid, > partition, whatever) - maybe i just don't carefully read manual page > for it ? Of course it is possible to use grep in pipe after lsblk, but > anyway. Yes, it's UN*X :-) ... grep or so lsblk -rpo LABEL,NAME | awk '/'$1'/ { print $2 }' Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com