#! /bin/bash/
# this is a comment
date=$(date)
list=$(ls -la)
echo "date or list?"
read var
if [[ $var=$date ]]
then
echo "Today's date: $date"
elif [[ $var=$list ]]
then
echo "Listing all: $list"
else
echo "Input not recognized"
fi
I've tried changing the if and elif statements multiple times. I want it to print the date when I type date and print ls -la when I type list.