Wednesday, April 09, 2008

pull ids from html forms using the command line

awk '/name=/{ for (i=0;i<NF;i++) if ( substr($i,0,5) == "name=")
print substr($i,7,length($i)-7)}' webformfile.html | uniq

No comments: