Is it possible to write working bash scripts on a windows machine as below.
1. Write and save script as a text file in windows.
2. Rename file and remove the extension .txt
3. Transfer script to linux machine
4. Make script executable, i.e.
root@linux-system# chmod +x name-of-script
Will this work or does windows use a text format that is incompatable with linux bash scripts?
Any advice would greatly appreciated.