This question already has an answer here:
So, I need to compare the input with the desired string outcome. When I type in the input it proceeds to the comparison and displays an error message. The input has to be "yes". It shows on the line of the comparison [TheInput: not found
I have tried to type all kinds of inputs "yes", "no", numbers but, the error is always the same.
read -p 'do you want to move these files to another dir?' answer
if [$answer -eq "yes"]; then
find . -type f -mtime +0 -size 1k -user markolosole -exec mv -t
dump/ {} +;
fi
It shows on the line of the comparison [yes: not found where "yes" is the answer that I typed
Aucun commentaire:
Enregistrer un commentaire