Posts tagged 'command'

Find and replace across files - Linux command line

Today’s interesting post concerns finding and replacing terms across multiple files via a simple command.  Thanks to this great blog post, it all comes down to one single line.  I had found a previously-useful line of code, but the problem with that one was the fact that it used the find command.  The problem with that is that if you do a wildcard search for * in a directory, it’ll give you back ‘.’ as a result.  Trying to work with that just wasn’t happening.

So, without further ado, the command (replacing ‘search’ with your search term and ‘target …