This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
linux:scripts:basics [2014/06/05 15:45] – lunetikk | linux:scripts:basics [2014/06/11 12:39] – lunetikk | ||
---|---|---|---|
Line 3: | Line 3: | ||
===== Commands ===== | ===== Commands ===== | ||
- | ^ Command | + | ^ Command |
- | | #!/bin/bash | + | | #!/bin/bash\\ or\\ # |
- | or | + | |
- | # | + | |
| VAR=var | | VAR=var | ||
| $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 - fi | inserts |
===== Troubleshooting ===== | ===== Troubleshooting ===== |