dialog menu to display files and select one of them
3
votes
2
answers
30796
views
I want to display all the files under
/home
directory in menu, and select only one of them. Then the script will print the full path of the selected file.
I have created the following script. This script only displays the files in the dialog box menu.
#!/bin/bash
dialog --title "List file of directory /home" --msgbox "$(ls /home )" 100 100
Asked by maihabunash
(7231 rep)
Sep 15, 2014, 05:55 AM
Last activity: Jan 4, 2024, 08:03 PM
Last activity: Jan 4, 2024, 08:03 PM