How can I combine this two expressions into one to be used in an awk script file?
awk '/select name="op_sys"/,/select>/' build/input.xhtml > build/output.xhtml
awk '/value="/,/">/' build/output.xhtml
Edit:
I would like to transform the expressions in an awk file to look like:
#!/usr/bin/awk -f
{
...
}
I think it would be dangerous merging the two range expressions. For example, what if the second range occurs outside of (or partially overlaps) the first range? I would simply use a pipe: