I am currently taking a linux class. I pretty much have to learn stuff on my own. I have writtent this script to produce a date format based on the argument. Ie (./script.sh one). I am having an issue getting this script to do just that. I think that i have something wrong. Any help would be greatly appreciated. here is the script:
#!/bin/bash
if [ $1="one" ]
then
date +%m-%d-%y
elif [ $2="two" ]
then
date +%d-%m-%y
elif [ $3="three" ]
then
date +%A,%B-%d,%Y
elif [ $4="four" ]
then
date +%s
elif [ $5="five" ]
then
fi