[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 6
Level 6
Posts: 1040
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:
User avatar
Koentje
Level 7
Level 7
Posts: 1578
Joined: Tue Jan 04, 2022 6:23 pm
Location: Netherlands

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!
Locked

Return to “Scripts & Bash”