LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to make a batch file? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-make-a-batch-file-948293/)

xilinuxra 06-03-2012 08:13 AM

how to make a batch file?
 
This may seems a silly question but I'm a beginner in linux , I don't know where could I find a complete explanation about "Making a batch file in Linux". If anyone could help me I will be appreciated.

Didier Spaier 06-03-2012 08:23 AM

Welcome to LQ.

It depend what you mean by "batch file".

If you mean a list of commands to be executed by an interpreter like "bash" or another program, then you can use a text editor like "vi" "nano", "gedit", whichever are available in your distribution.

TobiSGD 06-03-2012 08:53 AM

In Linux it isn't called a batch file, it is called a shell script. Most likely your system uses the Bash shell, you can find information here:
http://tldp.org/LDP/Bash-Beginners-Guide/html/
http://www.tldp.org/LDP/abs/html/

chrism01 06-03-2012 05:33 PM

This is a good tutorial http://rute.2038bug.com/index.html.gz


All times are GMT -5. The time now is 02:14 PM.