I created a Notepad file on Windows and copied it to Ubuntu. The file contains some iptables rules. After making the file executable using
chmod +x and executing it, it didn't work.
However, when I created a Ubuntu (gedit) file and copied the same contents from the Notepad file, made it executable and ran it, it worked.
What should I do to make the Notepad file run on Ubuntu?