[Xastir] dbfawk: conditional ?
Tom Russo
russo at bogodyn.org
Mon Sep 19 16:12:44 PDT 2016
On Mon, Sep 19, 2016 at 05:48:05PM -0500, we recorded a bogon-computron collision of the <kg4wsv at gmail.com> flavor, containing:
> Is
>
> /blah=([0-9]*)/ {if ($1 < 1000) display_level=128; next;}
>
> Legal in a dbfawk?
Nope. Not unless you feel like working on the dbfawk source code.
> Or am I going to have to play some RE games to get there?
Yep. Just make your regex look for three-digit numbers instead of [0-9]* and
you should be there, or if there is an issue with four-digit with
leading zeros, just use 0[0-9]{3} instead of [0-9]*.
--
Tom Russo KM5VY SAR502 DM64ux http://www.swcp.com/~russo/
Tijeras, NM QRPL#1592 K2#398 SOC#236 http://kevan.org/brain.cgi?DDTNM
echo "prpv_a'rfg_cnf_har_cvcr" | sed -e 's/_/ /g' | tr [a-m][n-z] [n-z][a-m]
More information about the Xastir
mailing list