Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 02 Apr 2003 20:57:48 -0500
From:      Dragoncrest <dragoncrest@voyager.net>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Technical question about scripts
Message-ID:  <5.2.0.9.2.20030402205519.00a05e10@pop.voyager.net>

next in thread | raw e-mail | index | archive | help
	I've got a bit of a technical question about doing scripts.  I've created 
a script that I use for expediting changes to one of my servers to save me 
a large number or repetitive steps that I have to do.  My question is this 
though.  Using either Pico or VI I need to be able to have the script know 
if I've saved/changed the file or if I just exited out without saving my 
changes.  Cause if I exited out without saving changes, I want it to abort 
the rest of the script, but if I changed any one of my config files, I want 
it to then complete the rest of the script.  Anyone know how to do this via 
a shell script?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.2.0.9.2.20030402205519.00a05e10>