Home / Hosting Cron Jobs / Find string an delete it

Find string an delete it

find -type f -exec grep -l 'bad-string-to-delete' {} \; -exec sed -i 'bad-string-to-delete' {} \;

Top
Trending Now : Unzip a zip archive from a directory to another directory and overwrite the files that are already there