shell script – New to using .sh on Mac


New to using .sh on Mac. Simple question – how do I save a text edit file/doc with extension .sh? I’ve exhausted my limited knowledge. I need to do this conversion to test run scripts on OS X. Though, with what I’ve gleaned from the web, Linux is much easier to navigate.