I receive the below error when i execute my script
./script: line 29: [: too many arguments
./script: line 33: [: too many arguments
./script: line 36: [: too many arguments
echo -e "Do you want to delete processed.log files: /c"
read item
if [ -e $item -eq yes -o $item -eq Yes -o $item -eq YES ]
then
rm -f a.csv b.csv
echo "Processed.logs files has been removed"
elif [ -e item -eq no -o item -eq No -o item -eq NO ]
then
echo "Processed.logs files has not been deleted"
elif [ -e item -eq * ]
then
echo "Please type yes or no to continue"
fi
Aucun commentaire:
Enregistrer un commentaire