[SOLVED] Yad and "--dclick-action"

About writing shell scripts and making the most of your shell
Forum rules
Topics in this forum are automatically closed 6 months after creation.
1000
Level 5
Level 5
Posts: 879
Joined: Wed Jul 29, 2020 2:14 am

Re: [SOLVED] Yad and "--dclick-action"

Post by 1000 »

Description (about anacron) from command dpkg -l
When I removed this apostrophe with command tr "'" " "
now everything working.
vimes666 your help is very big. You are great.
Thank you too. :mrgreen:
Koentje
Level 4
Level 4
Posts: 472
Joined: Tue Jan 04, 2022 6:23 pm

Re: [SOLVED] Yad and "--dclick-action"

Post by Koentje »

Indeed, i tested it with others that had an apostrophe in the description and they also did not work.

How do i use tr? Never used it before...
It has to be done on/in this line.

Code: Select all

dpkg -l | sort -fbn | tail -n +4 | grep -F "ii" | awk -F" "  '{ printf $1"\n" $2"\n" $3"\n" $4"\n"; $1=$2=$3=$4=""; printf substr($0,5)"\n" }'
Edit: Duh... never mind, i fixed it. :mrgreen:

Code: Select all

dpkg -l | sort -fbn | tail -n +4 | grep -F "ii" | awk -F" "  '{ printf $1"\n" $2"\n" $3"\n" $4"\n"; $1=$2=$3=$4=""; printf substr($0,5)"\n" }' | tr "'" " "
Thanks again!
Post Reply

Return to “Scripts & Bash”