Site Tools


linux:scripts:basics

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
linux:scripts:basics [2014/12/04 11:28] – [Not enough rights] lunetikklinux:scripts:basics [2015/06/15 15:37] lunetikk
Line 8: Line 8:
 |  $VAR  |  inserts var whereever $VAR is placed  | |  $VAR  |  inserts var whereever $VAR is placed  |
 |  case - esac  |  inserts case  | |  case - esac  |  inserts case  |
-|  if fi  |  inserts if  |+|  if [ "var" == "var" ]; then fi  |  inserts if  |
  
 ===== Troubleshooting ===== ===== Troubleshooting =====
Line 29: Line 29:
 Make your script executable with the following command Make your script executable with the following command
 <code>chmod +x [scriptname].sh</code> <code>chmod +x [scriptname].sh</code>
 +\\ 
 +\\ 
 +~~DISCUSSION~~
  
linux/scripts/basics.txt · Last modified: 2021/01/07 14:55 by lunetikk