Linux : Search and replace across multiple files

By | November 9, 2011

To search and replace across multiple text file on a Linux/Unix system, use the following command :

So, as example, let’s assume you want to replace an IP address in multiple Bind zone file (using the extension .hosts) and replace IP address 10.10.1.1 for 192.168.1.1 :




Be Sociable, Share!