This commit is contained in:
Antranig Vartanian
2023-03-14 16:34:51 +04:00
commit a2d0d3f216
7 changed files with 133 additions and 0 deletions

23
hints/Shell.md Normal file
View File

@ -0,0 +1,23 @@
# Unix Shell
## Manuals you'd need
### Testing
If you want to test a string, value or a path, you can use `[`
E.g.
`[ 1 = 1 ]` will return 0, which means true
### Getting Values from CLI
Usually, `$#` means number of arguments, while `$1`, `$2` ... returns the argument.
Special cases:
1. `$@` returns all arguments
2. `$0` returns the program itself
> Pro tip: there are multiple ways to do this :)