Bug #392
Updated by Daniel Curtis almost 10 years ago
While doing some common administration with the sed command line tool on FreeBSD, I found that the normal sed command would not work: <pre> sed -i 's/changing/changed/g' /path/to/files/* </pre> * I found a workaround on the FreeBSD forums that suggested the syntax should look more like the following: <pre> find . -type f -exec sed -i "" 's/changing/changed/g' {} \; </pre> * To use sed on a single file: <pre> sed -i '' -e 's/replace/textreplace/g' /path/to/file.txt </pre> h2. Resources * https://forums.freebsd.org/viewtopic.php?&t=12235