1779503816
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
run command and display error or success
|
||||
```bash
|
||||
<command>; ret=$? && if [ $ret -ne 0 ]; then echo -e "\n\033[0;31mERRROR! Code: $ret\033[0m"; else echo -e "\033[0;32mOK!\033[0m"; fi
|
||||
```
|
||||
@@ -0,0 +1,5 @@
|
||||
# Quick and Dirty Methods (Bash)
|
||||
show every set variale and its value (one liner)
|
||||
```bash
|
||||
for v in $(compgen -v); do echo "$v:$$v"; done
|
||||
```
|
||||
Reference in New Issue
Block a user