Update Bash

Caffeine Fueled 2025-10-01 18:58:35 +00:00
parent a7b10e0178
commit 7b780da177

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"
```