Inline recursive replace string

Just another syntax reminder 🙂

Inline recursive replace string on macOSx

export LC_CTYPE=C LANG=C
find * -type f -print0 | xargs -0 /usr/bin/sed -i '' 's/from_string/to_string/g'

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.