Błąd składniowy w pobliżu nieoczekiwanego tokenu „then”

Kod wpisałem tak samo jakLinux Command Line: Kompletne wprowadzenie, strona 369, ale wyświetl błąd:

line 7 `if[ -e "$FILE" ]; then`

kod jest jak:

#!/bin/bash
#test file exists

FILE="1"
if[ -e "$FILE" ]; then
  if[ -f "$FILE" ]; then
     echo :"$FILE is a regular file"
  fi
  if[ -d "$FILE" ]; then
     echo "$FILE is a directory"
  fi
else 
   echo "$FILE does not exit"
   exit 1
fi
   exit

Chcę uświadomić sobie, co spowodowało błąd? Jak mogę zmodyfikować kod? Mój system to Ubuntu.

questionAnswers(1)

yourAnswerToTheQuestion