From mboxrd@z Thu Jan 1 00:00:00 1970 From: Glen Mabey Date: Thu, 15 Jul 2004 12:36:26 +0000 Subject: Re: [LARTC] TC Hashing Filters Message-Id: <20040715123626.GA29057@mabeys.dsl.aros.net> List-Id: References: <005c01c2c1b1$e006a820$0200a8c0@monster> In-Reply-To: <005c01c2c1b1$e006a820$0200a8c0@monster> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org 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 . 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 Glen.Mabey@usu.edu http://mabeys.homelinux.com/glen/ ****************************************************************** _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/