Recursive search and change String in file via terminal

Somehow i have write wrong code for debugging my apps, i have write Timber.i(“Some text debug”); but its must be Timber.d(“Some text debug”)

So i must change all my code, after googling for some minutes i have find a way for doing that fastly

find . -type f -name ‘*.java’ -exec sed -i ‘’ s/Timber.i/Timber.d/ {} +

Thanks google & stackoverflow

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.