コマンドを実行して目的を達成するためのプロセスの次のステップがわかりません。コマンドを実行する文字を選択したい。現在、任意の文字を使用できます。
#!/bin/bash
echo "Please select l to list files of a directory, b to backup a file or directory, u to edit a user's password, and x to exit the script"
read $answer
if [ $answer="l" ]; then
printf "Please select folder:\n"
select d in */; do test -n "$d" && break; echo ">>> Invalid Selection"; done
cd "$d" && pwd
ls
fi