scsh-users
[Top] [All Lists]

Re: Skipping clauses in awk macro

To: Jonathan Hankins <jhankins@homewood.k12.al.us>
Subject: Re: Skipping clauses in awk macro
From: "Andreas Bernauer" <Andreas.Bernauer@gmx.de>
Date: Thu, 12 May 2005 20:02:09 +0200 (MEST)
Cc: scsh-users@scsh.net
List-id: <scsh-users.list-id.scsh.net>
> From: Jonathan Hankins <jhankins@homewood.k12.al.us>
> Is it possible to, at some clause in an awk macro, skip the remaining
> clauses
> and jump to the point where the next read occurs, like "next" in awk?
> 
> In my ignorance, I tried playing with call/cc, but looking at the way the
> macro
> is structured, I can't see a continuation that would get me out of the
> remaining
> clauses, but back to the next call to the reader-exp.

I don't know about a "next" feature in scsh awk, but instead of call/cc
maybe a boolean state variable helps that is reset at the beginning of every
loop and checked in every clause (if true, just return the current state)?  

Rather a workaround than a solution...

-- 
Andreas Bernauer

+++ Neu: Echte DSL-Flatrates von GMX - Surfen ohne Limits +++
Always online ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl

<Prev in Thread] Current Thread [Next in Thread>