Files
crumbmissions/token_check.sh
Branko May Trinkwald 2915828adf Add complete Crumbforest mission system
- Interactive mission selector with metadata-driven design
- 5 educational missions (basics + advanced)
- AI assistant roles (Deepbit, Bugsy, Schnippsi, Tobi)
- SnakeCam gesture recognition system
- Token tracking utilities
- CLAUDE.md documentation
- .gitignore for logs and secrets
2025-12-21 01:16:48 +01:00

12 lines
338 B
Bash
Executable File

#!/bin/bash
echo "🧹 Säubere token_log.json-Dateien (nur gültige Zeilen) …"
for f in ~/.*/token_log.json; do
echo "🔍 $f"
cp "$f" "$f.bak"
grep -e '^{.*}$' "$f.bak" | while read -r line; do
echo "$line" | jq empty >/dev/null 2>&1 && echo "$line"
done > "$f.cleaned"
mv "$f.cleaned" "$f"
echo "✅ Fertig: $f"
done