#!/bin/bash
echo hellooo
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
Bash is so ubiquitous now that most people still use bash only commands in their scripts, even when the command processor is declared as sh.
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?
Bash is so ubiquitous now that most people still use bash only commands in their scripts, even when the command processor is declared as sh.
What is it's not GNU? AIX for example, whose default is ksh (although bash is usually there too).
What if it's not GNU? AIX for example, whose default is ksh (although bash is usually there too).