[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

editfiles and replacing on one line

From: Viraj Alankar
Subject: editfiles and replacing on one line
Date: Sun, 6 Nov 2005 16:28:53 -0500


Is it possible to do the following with editfiles:

I have in /etc/fstab:

/dev/sda2               /tmp                    ext3   
defaults,nosuid,nodev,noexec        1 2

I would like to remove ',noexec' from this line only. I thought of
using LocateLineMatching to find the line, but am not sure how to do
the replacement.

Thanks for the help,


reply via email to

[Prev in Thread] Current Thread [Next in Thread]