Sample Header Ad - 728x90

dialog menu to display files, select one of them and then able to delete it

3 votes
1 answer
2158 views
I want to be able to display files under a given directory, then select one of the files and be able to delete it. Here's what I've found so far. Can anybody help? let i=0 # define counting variable W=() # define working array while read -r line; do # process file by file let i=$i+1 W+=($i "$line") done &2 2>&1 1>&3) # show dialog and store output clear if [ $? -eq 0 ]; then # Exit with OK readlink -f $(ls -1 /home | sed -n "echo "$FILE p" | sed 's/ //'") fi
Asked by NickG95 (31 rep)
Mar 14, 2016, 09:50 AM
Last activity: Jun 27, 2025, 06:04 AM