aboutsummaryrefslogtreecommitdiffstats
path: root/set_debug.sh
diff options
context:
space:
mode:
Diffstat (limited to 'set_debug.sh')
-rwxr-xr-xset_debug.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/set_debug.sh b/set_debug.sh
new file mode 100755
index 0000000..95a8c74
--- /dev/null
+++ b/set_debug.sh
@@ -0,0 +1,4 @@
1#!/bin/bash
2PATTERN="(define debug[a-z_]+\s*)[0-9]+"
3sed -ri "s/$PATTERN/\\1$1/gi" *.[ch]
4grep -HirE "$PATTERN" *.[ch] \ No newline at end of file