how to find and replace a string in a file using shell script on mac
# replaces ALL(g i.e. global) ouccurences of "original_string" with "new_string",
# in the file file_name.ext_name
sed -i '' "s/original_string/new_string/g" file_name.ext_name
how to find and replace a string in a file using shell script on mac
# replaces ALL(g i.e. global) ouccurences of "original_string" with "new_string",
# in the file file_name.ext_name
sed -i '' "s/original_string/new_string/g" file_name.ext_name
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us