LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   change file format (https://www.linuxquestions.org/questions/linux-newbie-8/change-file-format-132390/)

EECGeek 01-07-2004 09:43 AM

change file format
 
I'm try to get Popfile 19.1 to load on start up.

Popfile works fine, I understand where to put the shell script in init.d and rc0.d etc and number it accordingly, and I have the script required saved as a plain text file.

How do I change a plain text file to a shell script, ie how do you change a file type/format?

I am fairly new to Linux, maybe my windows knowledge is causing a brain fart, and I'm sure this is probably a very easything to do, but I CAN'T figure it out, so be gentle on me!

Greg

jim mcnamara 01-07-2004 09:46 AM

chmod +x shellscriptfilename

jim mcnamara 01-07-2004 09:47 AM

PS: linux does not care about file extensions.

If you want a file to execute by just typing it's name add this line to the very top of the file:
Code:

#!/bin/bash


All times are GMT -5. The time now is 06:47 PM.