sicelo | any awk gurus here? i'm trying out the following awk script: awk 'BEGIN{m=2}/<fullcount>.+<\\/fullcount>/{gsub(/<[^>]*>/,"",$0);print $1 " New";if($1>0)m=1;else m=0}END{exit m}' | 19:10 |
---|---|---|
sicelo | but it returns awk: cmd. line:1: error: Unmatched ( or \(: /{gsub(/ | 19:10 |
sicelo | it comes from https://talk.maemo.org/showthread.php?p=572068#post572068 | 19:11 |
sicelo | any ideas? | 19:11 |
L29Ah | i'm pretty sure it no longer works | 19:28 |
L29Ah | just rewrite it in sed :) | 19:29 |
sicelo | i'd appreciate help :p | 19:32 |
sicelo | sed and awk are still a mystery for me, for the most part. the gmail feed does still work btw, and returns xml. | 19:33 |
L29Ah | https://tldp.org/LDP/abs/html/x23170.html | 19:35 |
L29Ah | ^ that's how i got into sed | 19:35 |
sicelo | i sort of fixed it now - one too many \ | 20:55 |
sicelo | anyway, it turned out to not be something i would use :P | 20:55 |
Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!