Comments on: How to Use the Sed Command to Replace String in Files https://tecadmin.net/example-of-find-and-replace-string-in-files-with-sed/ How to guide for System Administrator's and Developers Sat, 30 Jul 2022 23:14:52 +0000 hourly 1 https://wordpress.org/?v=6.1.1 By: sunny https://tecadmin.net/example-of-find-and-replace-string-in-files-with-sed/#comment-4463 Thu, 26 Oct 2017 10:21:13 +0000 https://tecadmin.net/?p=1387#comment-4463 Hi,

Above command Not Working
find /opt/docs/ -type f -exec sed -i ‘s/Hello/Howdy/g’ {} ;
getting the below error
find: missing argument to `-exec’

solution:
A -exec command must be terminated with a ; (so you usually need to type \;

]]>