I'm trying to make a script that changes the name of the file if the file already exists to something like file1.txt, but I keep getting the same error: Syntax error: unexpected end of file So far I have done this:

```
#! /bin/bash
FILE=/home/skrips/file.sh
ls -l /home/skrips/*/
ls /home/skrips/*/ > $(date '+%d:%m:Y%').file.txt
if [ -f " $FILE" ]; then
mv -i $(date '+%d:%m:Y%').file.txt file.txt $(date '+%d:%m:Y%').file+1
fi

```