title: I need to edit the bash script to select a letter to do separate commands
body: <p>I am not sure what step is next in the process to get the commands to do what I want. I want to select a letter to do a command. Right now it lets you use any letter.</p>
  
  <pre><code>#!/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" &amp;&amp; break; echo "&gt;&gt;&gt; Invalid Selection"; done
  cd "$d" &amp;&amp; pwd
  
  ls
  
  fi
  </code></pre>