Difference between revisions of "BASH"

From RHS Wiki
Jump to navigation Jump to search
(Created page with "== BASH Script == === Hello World === <source lang="bash"> #!/bin/bash echo Hello World </source> === Variables === === Strings === === Loops === ==== While ==== ==== For ====...")
 
Line 3: Line 3:
 
<source lang="bash">
 
<source lang="bash">
 
#!/bin/bash
 
#!/bin/bash
echo Hello World
+
STR="Hello World"
 +
echo $STR
 
</source>
 
</source>
 +
 
=== Variables ===
 
=== Variables ===
 
=== Strings ===
 
=== Strings ===

Revision as of 00:49, 27 March 2015

BASH Script

Hello World

#!/bin/bash
STR="Hello World"
echo $STR

Variables

Strings

Loops

While

For

Conditional

if

case

User Input

Arrays