I have a command like this:
sed -i -e '/console.log/ s/^\/*/\/\//' *.js
which does comments out all console.log
statements. But there are two things
- It keeps the backup file like
test.js-e
, I doesn't want to do that. - Say I want to the same process recursive to the folder, how to do it?