Mass delete some lines of code

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
5,395
693
313
cPanel Access Level
Root Administrator
Hey there! It's definitely possible to perform this work, but I would be hesitant to post any examples as this is a dangerous operation if something goes wrong. I would recommend looking into find and replace searches with a tool like "sed" to perform this work.

What I like to do for these situations is create a test directory that has the code I want to replace, and then run my command on the test directory. That allows me to ensure it works before I run it on a larger production directory.