I want to change each pattern "evictions" with "128" in all files started with "tor*". I use
find . -name "tor*" -exec sed "s/evictions/128/g" '{}' \;
But it doesn't work.
You need the -i flag, which edits files in place.
Do this:
find . -name "tor*" -exec sed -i "s/evictions/128/g" '{}' \;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With