On Wed, Jul 14, 2004 at 07:13:11PM -0700, gypsy wrote:
> Your script can be modified to display the line with the substitutions
> and to exit when executing causes an error.  What I envision is that
> you'll watch 2000+ lines of good stuff scroll by and that the final line
> will be your Bad Boy.  And the last few lines are what we all are
> holding our breath to see <grin>.

This took me a little while to figure out myself, so I thought I'd post
it.

If you are running a bash script, what you want to do is to add at the
top:

set -e   # causes script exit on error
set -x   # causes command to be printed before it is executed

Glen

-- 
******************************************************************
Glen W. Mabey
[EMAIL PROTECTED]
http://mabeys.homelinux.com/glen/
******************************************************************
_______________________________________________
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

Reply via email to