HTML Table to CSV in AWK [awk]


/ Published in: Bash
Save to your folder(s)



Copy this code and paste it in your HTML
  1. BEGIN {s=""; FS="n"} /<td/ { gsub(/<[^>]*>/, ""); s=(s ", " $1);} /<tr|<TR/ { print s; s="" }

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.