'Return find results in whiptail option menu
I have these directories:
/home/user/ABC/home/user/D3A/home/user/BC1
The idea is that I want to search for any directory name that has only 3 alphanumeric characters and return them in a whiptail option menu, where I can select one of these results and pass the result in a variable.
The variable should contain the full path. e.g. /home/user/BC1.
This returns what I need, but I also need whiptail to show the results in a menu:
find /home/user -type d -regex ".*/[A-Z0-9][A-Z0-9][A-Z0-9]"
Any help would be appreciated!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
