From: Gary Lopez (gary@catapult.com)
Date: Wed Feb 21 2007 - 20:29:00 EST
Thanks to John Heiden for giving me the answer. My original question is
below.
Well, you could use SED to do this. You could do something like:
cp /etc/vfstab /etc/vfstab.old
cat /etc/vfstab | sed "s/oldstring/#oldstring/" > /etc/vfstab.new
cp /etc/vfstab.new /etc/vfstab
> Everyone,
> I am not a scripting guru, please don't hold it against me. I just
> needed to modify the /etc/vfstab on several machines at one time and
> unsure how to do that.
> Basically, I need to find the machine name in the vfstab and comment it
> out.
>
> ex. test1:/mountpoint
>
> to
> #test1:/mountpoint.
>
> Any suggestions are welcome.
-- Gary D Lopez Unix Systems Administrator Catapult Communications 160 S Whisman Rd Mountain View, CA 94041 Ph (650) 314-1029 Fax (650) 960-1029 ************************************************************* "This e-mail (and any attachments) may contain confidential and privileged information. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this e-mail and destroy any copies. Any dissemination or use of this information by a person other than the intended recipient is unauthorized and may be illegal. Thank you." ************************************************************* _______________________________________________ sunmanagers mailing list sunmanagers@sunmanagers.org http://www.sunmanagers.org/mailman/listinfo/sunmanagers
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:41:40 EDT