This commit is contained in:
2025-08-02 14:05:12 -06:00
parent b4e4f5a0f8
commit 2898030a6e
+5 -1
View File
@@ -4,9 +4,13 @@ if [ -z "$1" -o -z "$2" ]; then
exit exit
else else
# ugrep # ugrep
# ugrep docs https://ugrep.com
# -W hexdump binary matches, while keeping text matches as text # -W hexdump binary matches, while keeping text matches as text
# -z decompress files if need be to scan them # -z decompress files if need be to scan them
# -R recursive # -R recursive
# ug -W -z -R '<bytes regex>' "<path>" # ug -W -z -R <bytes regex> <path>
# bytes in sequence '\x{0d}\x{0a}'
# mix of bytes sans sequence '[\x{0d}\x{0a}]'
# normal regex applies '[\x{0d}\x{0a}]{4,6}'
ug -W -z -R $1 $2 ug -W -z -R $1 $2
fi fi