add scripts

This commit is contained in:
2025-05-03 23:07:18 -07:00
parent 5cff20c839
commit 773f468b37
20 changed files with 1081 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
#!/bin/bash
CMD="$1"
BEFORE_SPACE="${CMD%% *}"
if command -v "$BEFORE_SPACE" &> /dev/null; then
eval "$CMD" | sed 's/&/\&amp;/g; s/</\&lt;/g; s/>/\&gt;/g; s/'\''/\&#39;/g'
else
echo "$CMD" | sed 's/&/\&amp;/g; s/</\&lt;/g; s/>/\&gt;/g; s/'\''/\&#39;/g'
fi