Linux Mastering Development

Using regular expressions (regex) in sed

This is a specific example of a general subject I fail to grasp. For years, I have used regex and sed to find/replace all occurrences of a string in all the files in a directory recursively, using something like this: #FIND $GLOBALS[‘timechecks’] and REPLACE with completely_different_string shopt -s globstar dotglob; for file in /var/www/**/*; do […]