Update Bash

Caffeine Fueled 2025-12-18 16:52:44 +00:00
parent 8d164f22f0
commit 7f227a20d4

14
Bash.md

@ -44,3 +44,17 @@ curl -X POST http://localhost:8000/api/run1/ \
-H "Authorization: Bearer 9d207bf0-10f5-4d8f-a479-22ff5aeff8d1" \ -H "Authorization: Bearer 9d207bf0-10f5-4d8f-a479-22ff5aeff8d1" \
-d "host_a,is ok" -d "host_a,is ok"
``` ```
---
## Another List
- `find / -type f -name “inventory.ini” 2>/dev/null`
- `for file in *.md; do mv "$file" "prefix_$file"; done`
- `python3 -m http.server 9100 --bind 10.20.30.57 --directory /path/to/directory`
- `find . -maxdepth 1 -type f | wc -l`
- `grep -rl "SSL-VPN is disabled" . --include="*.logs" | wc -l`
- `find . -type f -exec grep -l 'SSL-VPN is disabled' {} + | wc -l`
- `find . -type f -exec grep -lZ 'SSL-VPN is disabled' {} + | xargs -0 rm -f`
- `find . -maxdepth 1 -type f -exec head -n -10 {} \;`
- `find . -type f -exec cat -- {} + | less`