User Tools

Site Tools


linux:bash

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
linux:bash [21/05/2025 13:32] – [Arrays] andrewlinux:bash [04/07/2025 10:57] (current) andrew
Line 30: Line 30:
  
 [[linux:bash-quickguide|Quick guide to shell scripts in BASH]] [[linux:bash-quickguide|Quick guide to shell scripts in BASH]]
 +
 ===== Generic script frameworks ===== ===== Generic script frameworks =====
  
Line 43: Line 44:
  
 [[linux:bashshortcut|Bash reference and shortcuts sheet]] [[linux:bashshortcut|Bash reference and shortcuts sheet]]
 +
 ==== Print tab character. ==== ==== Print tab character. ====
  
Line 67: Line 69:
 ==== Running multiple commands ==== ==== Running multiple commands ====
  
-Join two or more commands together, just rune them in turn and don't care if they succeed or fail:-+Join two or more commands together, just run them in turn and don't care if they succeed or fail:-
  
   $ command1 ; command2   $ command1 ; command2
Line 107: Line 109:
  
 Unlike setting variables where a space round the ''VARIABLE=value'' is required, comparison operators NEED a space round the operator, thinking on this, setting a variable and testing it are quite different operations, but the ''='' and ''=='' for variable setting and testing numeric equality do superficially look similar.  Unlike setting variables where a space round the ''VARIABLE=value'' is required, comparison operators NEED a space round the operator, thinking on this, setting a variable and testing it are quite different operations, but the ''='' and ''=='' for variable setting and testing numeric equality do superficially look similar. 
 +
 ===== if elif else ===== ===== if elif else =====
  
linux/bash.txt · Last modified: by andrew

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki