Posted By

bubnoff on 04/15/11


Tagged

awk


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

saman
jeremydouglass
scilec


HTML Table to CSV in AWK [awk]


 / Published in: Bash
 

URL: http://snippets.dzone.com/posts/show/3848

  1. BEGIN {s=""; FS="n"} /<td/ { gsub(/<[^>]*>/, ""); s=(s ", " $1);} /<tr|<TR/ { print s; s="" }

Report this snippet  

You need to login to post a comment.