Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- debian@debian-desktop:~$ cat blargh
- foo bar123; DELETEP(bar123); bar123 foo;
- foo bar123; DELETEP(bar123); bar123 foo;
- foo bar123; DELETEP(bar123); bar123 foo;
- foo bar123; DELETEP(bar123); bar123 foo;
- foo bar123; DELETEP(bar123); bar123 foo;
- foo bar123; DELETEP(bar123); bar123 foo;
- debian@debian-desktop:~$ sed -i 's/DELETEP(\(.*\))/if(\1) { delete \1; \1 = 0; }/g' blargh
- debian@debian-desktop:~$ cat blargh
- foo bar123; if(bar123) { delete bar123; bar123 = 0; }; bar123 foo;
- foo bar123; if(bar123) { delete bar123; bar123 = 0; }; bar123 foo;
- foo bar123; if(bar123) { delete bar123; bar123 = 0; }; bar123 foo;
- foo bar123; if(bar123) { delete bar123; bar123 = 0; }; bar123 foo;
- foo bar123; if(bar123) { delete bar123; bar123 = 0; }; bar123 foo;
- foo bar123; if(bar123) { delete bar123; bar123 = 0; }; bar123 foo;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement