I found a command to find documents in my all-level folders and directories that are utf-8 with BOM and then remove the BOM. But it doesn't seem to work on my computer(osx)...Should I install moodle on my machine first in order to run it in my command line?
Below is the command:
find . -type f -exec sed 's/^\xEF\xBB\xBF//' -i.bak {} \; -exec rm {}.bak \;
The result I got is sed: -i.bak: No such file or directory
and all the content in the files, which seems very weird.
Thank you for your help!