Replace – Helpful linux command reference
The replace command is a very simple but VERY powerful command that comes as part of mysql. It can be used to quickly replace entries within a group of files. Generally I find it useful for mass-modification of an IP for dns or TTL for dns.
The general format:
replace a b b a — file1 file2
replace a b b a — file1 file2
In english:
replace 14400 3600 — /var/named/*db*
Where 14400 is the old term and 3600 is the term you want to replace it with. The *db* just means it does it to any file with db in the name in the /var/named/ directory.
| Print article | This entry was posted by wiredgorilla on January 26, 2008 at 23:18, and is filed under Techno Babble. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |







