Ubuntu Bash scripts

From Lofaro Lab Wiki
Revision as of 13:30, 3 December 2014 by Eeide (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Bash.png

Above is a simple bash script for some files all you need to do is cd to the location of the files the gnome-terminal opens a new command terminal and you tell it to run what ever program in that terminal.

You must have the #!/bin/sh at the top for it to work.

The bash script must be saved as anything.sh

To run the script you cd to the location of the bash script and then type bash anything.sh