I’m working on a shell script which is a menu-driven interface.
one of the options asks user to enter a list of optional files or directories and then the code will delete them after checking if they are valid files and directories.
the goal of the code is understanding of menu-driven interface.
my problem is reading the list of files and directory names.
It seems that sh does not support array. what is the solution for this problem?
2) echo "enter the name of files want to be deleted: "
read files
.
.
;;
1 Answer