michaelsanford
Translator, Web Developer
I have a rather large for that I want to get the variable names from, so that I can quickly make a PHP page without having to recopy them all by hand.
I've gotten this far
cat ncf.html | grep -e '<input' | grep -e 'name='
But this just gives me the full lines of every instance of those variable names (i.e., each form element). I can't figure out how to make the script get the part after name= (so XXX, the variable name) and parse that into a file (with a simple redirection operator).
Any ideas?
I've gotten this far
cat ncf.html | grep -e '<input' | grep -e 'name='
But this just gives me the full lines of every instance of those variable names (i.e., each form element). I can't figure out how to make the script get the part after name= (so XXX, the variable name) and parse that into a file (with a simple redirection operator).
Any ideas?