aboutsummaryrefslogtreecommitdiffstats
path: root/set_debug.sh
blob: 19bb76c32df442b6e62b1cf2ade8d51c3ff2691f (plain) (blame)
1
2
3
4
#!/bin/bash
PATTERN="(define debug[a-z_]+\s*)[-0-9]+"
sed -ri "s/$PATTERN/\\1$1/gi" *.[ch]
grep -HirE "$PATTERN" *.[ch]