Update Bash
parent
a7b10e0178
commit
7b780da177
1 changed files with 10 additions and 1 deletions
11
Bash.md
11
Bash.md
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
## Running multiple commands at once
|
## Running multiple commands at once
|
||||||
```bash
|
```bash
|
||||||
{ cmd() { printf "\n# %s\n" "$*"; "$@"; }; \
|
{ cmd() { printf "\n# %s\n" "$*"; "$@"; }; \
|
||||||
|
@ -35,3 +34,13 @@ done < domain-list.txt
|
||||||
```bash
|
```bash
|
||||||
sort file.txt | uniq -c | sort -nr
|
sort file.txt | uniq -c | sort -nr
|
||||||
```
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Curl - Simple API call
|
||||||
|
|
||||||
|
```bash
|
||||||
|
curl -X POST http://localhost:8000/api/run1/ \
|
||||||
|
-H "Authorization: Bearer 9d207bf0-10f5-4d8f-a479-22ff5aeff8d1" \
|
||||||
|
-d "host_a,is ok"
|
||||||
|
```
|
Loading…
Add table
Add a link
Reference in a new issue