Bash hall of fame

From Localhorst
Jump to: navigation, search

for LINE in $(grep -Hnr 'call_user_func(' . | cut -d ":" -f1,2); do NR=$(echo $LINE | cut -d ":" -f2); FILE=$(echo $LINE | cut -d ":" -f1); echo "$FILE:$NR"; sed -ie "${NR}s/^/debugFooBar\(\);/" $FILE; done