Skip to content

Instantly share code, notes, and snippets.

@anton0xf
anton0xf / stdin.txt
Created July 4, 2012 08:18 — forked from anonymous/stdin.txt
stdin
sed -n 's/[^<>]*<[ \t\n]*set[ \t\n]\+value='\''\([^'\'']*\)'\''[ \t\n]\+name='\''\([^'\'']*\)'\''[ \t\n]*\/>[^<>]*/\n\$\$"\1","\2"\n/pg' test | sed -n 's/^\$\$\(.*\)$/\1/p;'