Are batch files possible?

Soldato
Joined
14 Oct 2007
Posts
2,738
Are batch files possible in Ubuntu?
I tried to use Gedit and saved it as .bat but im guessing that doesnt work...what extension does it need to be?
 
Shell Scripts are essentially equivalent to batch files (although much more awesome).

following sort of syntax:
Code:
#!/bin/bash
echo hellooo

And make sure you chmod +x the file to make it executable, extensions are irrelevant but .sh is the standard.

Run the script with ./myscript.sh from a terminal

:eek: I dont know ANYTHING about Linux so what you've just said doesnt make much sense in regards to chmod +x and ./myscript.sh lol
 
Back
Top Bottom