File output with YAD

Asked

Viewed 25 times

-1

Good morning, everyone,

I have some problems with the use of YAD. I have a super functional and very useful shellscript. Now I’m trying to put it in a graphical interface to look really nice and stylish. Problem is that the script uses outputs of several files, something I’m not able to do with YAD :/

placa=$(iwconfig | cut -d" " -f 1> interface.txt)
yad --list --title="Interfaces de rede sem fio" --width=600 --heigth=800 --print-all $(cat inteface.txt | egrep -o "\w{1,}") 

My real intention would be to put something like:

placa=$(iwconfig | cut -d" " -f 1> interfaces.txt)
yad --radiolist --title="Interfaces de rede" \
--text "Escolha uma interface"\
--column "Placas"\
--width=600 --heigth=800\
false $(sed -n '1' interface.txt | egrep -o "\w{1,}")\
true $(sed -n '2' interface.txt | egrep -o "\w{1,}")

Can someone shed some light on me? I can’t find any material with that kind of content!

1 answer

0


I managed with the following syntax:

placa=$(iwconfig | cut -d" " -f 1> interfaces.txt)
opcao1=$(sed -n '1' interface.txt | egrep -o "\w{1,}")
opcao2=$(sed -n '2' interface.txt | egrep -o "\w{1,}")

yad --radiolist --title="Interfaces de rede" \
--text "Escolha uma interface"\
--column " " -- column "Placas"\
false "$(echo $opcao1)"  \
true "$("$(echo $opcao1)" \
--width="600" --heigth="200" )

Browser other questions tagged

You are not signed in. Login or sign up in order to post.