This is my code:
#! /bin/bash
PSQL=“psql --username=freecodecamp --dbname=salon --tuples-only -c”
echo -e “\n Select the service you want:\n”
LIST_OF_SERVICES=$($PSQL “SELECT service_id, name FROM services ORDER BY service_id”)
echo “$LIST_OF_SERVICES” | while read SERVICE_ID BAR NAME
do
ID=$(echo $SERVICE_ID | sed ‘s/ //g’)
SERVICE=$(echo $NAME | sed ‘s/ //g’)
echo “$ID) $NAME”
done
read SERVICE_ID_WANTED
And " You should display a numbered list of the services you offer before the first prompt for input, each with the format #) <service> . For example, 1) cut , where 1 is the service_id" doesn’t appear checked. Why?