sed is foreign to me, to say the least. I'd like to traverse a C project tree and comment out every line calling the function
LogMsg(). Something that'd achieve the following:
foreach: line within *.c if: line contains "LogMsg" prepend "//"
Or so. Also, then, I'd like to see if I could achieve the reverse, though I imagine that might be more difficult.
I feel like
sed is the right tool for this job, but I'm no expert in batch text file edits. Any help?