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 [2017/03/01 12:50] – external edit 127.0.0.1 | ||
---|---|---|---|
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 [ " |
===== Troubleshooting ===== | ===== Troubleshooting ===== | ||
Line 29: | Line 27: | ||
Fix:\\ | Fix:\\ | ||
- | Make your script | + | Make your script |
< | < | ||
+ | \\ | ||
+ | \\ | ||
+ | ~~DISCUSSION~~ | ||