So basically im trying to echo/print a phrase into another file.. this is my code
#! /bin/bash
if [ ! -r $dbname ]
then
touch $dbname
echo "Create" $i > $dbname
fi
done
why am i getting this error: syntax error near unexpected token `done'
i am trying to make a state that says Create "user input" and then send it to a file i have name dbname (databasename) am i doing something wrong??