bash: generating a string containing options and using with kdialog
I'm writing a script where I want to present a list of options in a kdialog radiolist. The options are very similar so I want to generate them in a loop somehow then give them to kdialog. So far I have...
Code:
#!/bin/bash Code:
1 'Automatically remove files from Wastebin after 1 day' on 2 'Automatically remove files from Wastebin after 2 days' off 3 'Automatically remove files from Wastebin after 3 days' off 4 'Automatically remove files from Wastebin after 4 days' off 5 'Automatically remove files from Wastebin after 5 days' off 6 'Automatically remove files from Wastebin after 6 days' off 7 'Automatically remove files from Wastebin after 7 days' off Can anyone explain how to get this to work? I've been mucking around with the quotes for about an hour and I'm completely stumped. Maybe |
Solved it myself after reading through some other threads on here. :)
Code:
eval kdialog --radiolist "'Files in the Wastebin count towards your quota usage. Automatically removing files from the Wastebin helps you stay within your quota limit.'" $dialogoptions |
All times are GMT -5. The time now is 06:43 PM. |