How do I edit "soffice script" on Mac OS X?

I have the terminal program and I can use it to edit a script on Mac. Where is the script located and what is its name? That is the way that I can disable file locking. I am a single user.

LibreOffice.app is just a directory structure. The script is located:

/Applications/LibreOffice.app/Contents/MacOS/soffice

Also refer the answers here for using a bash script.

This looks helpful. I don’t know how to reveal the directory structure. Will investigate doing it using a bash script.

in finder there is a menu item when right click on a package and then something “reveal package content” or the like (sry, no OS X at hand, I’m at work)

In terminal, I enter this:
./soffice --help and get a long list of commands. None seem to be about editing. I tried to vi edit it and it does not seem to be a text script. This is what I want to do: "edit the soffice script and change the line “export SAL_ENABLE_FILE_LOCKING” to “# export SAL_ENABLE_FILE_LOCKING”. I do not know how to edit and change the line.

Just saw Option: --nolockcheck
Maybe I should enter ./soffice --nolockcheck
Am trying that.