Scripting /etc/fstab changes
Gaddis, Jeremy L.
jeremy at linuxwiz.net
Tue Dec 5 22:12:25 UTC 2006
On 12/5/06, David Tonhofer <d.tonhofer at m-plify.com> wrote:
> Try this perl script, it's probably unelegant as hell but I found it in
> my "hacks" directory.
> No guarantees!!! Try it first manually, then set reallyWrite to 1 to
> replace your fstab.
Why a huge script when you can easily do it with a sed one-liner?
sed -i -e 's/^hostA/hostB/g' /etc/fstab
-j
--
Jeremy L. Gaddis, MCP, GCWN
http://www.linuxwiz.net/
More information about the redhat-list
mailing list