You use text editors and if they have an option to save with UNIX encoding you pick that option. Think even Notepad will do if on Windows (or TextPad and/or UltraEdit) and emacs or vi will do on Unix/Linux, TextWrangler on Mac, on that criteria (but during the first exchanges of files you should never clobber the already existing script ... version control or "making sure it works independently first" is needed).
The permissions on the file need to remain the same if you already have a working scenario. A unix script can run just by going
[unix-script-name]
on the command line if they have the execute permission allowed (see the source link regarding chmod).
If the script deliberately does not have this execute permission, for a reason, the script can be run via ...
/bin/sh [unix-script-name]
OR
sh [unix-script-name]
To find out the existing permissions for your unix script, go:
ls -la [unix-script-name]
To type the script to the screen:
cat [unix-script-name]
To edit the script (you need to know vi ... especially to save and exit is
:!wq):
vi [unix-script-name]