I have the following script, which worked perfectly fine on FreeNas.
Now, using it on Ubuntu have the following error:

find: missing argument to `-exec'

```
#!/bin/bash

find /fileshare/Zund/export/ \
    -type f \
    ! -exec lsof -n "{}" \; \
    -exec cp "{}" /fileshare/Zund/zund1/ \; \
    -exec chmod -R 777 /fileshare/Zund/zund1/ \; \
    -exec cp "{}" /fileshare/Zund/zund2/ \; \
    -exec chmod -R 777 /fileshare/Zund/zund2/ \; \
    -exec rm "{}" \;.

```

Any help is greatly appreciated :)

Cheers