select id='name' method='out'
option value='1'
option value='2'
option value='3'
#!/bin/bash
echo "select id='name1' method='out1'
option value='10'
option value='20'
option value='30'
select id='name2' method='out2'
option value='11'
option value='22'
option value='33'
select id='name3' method='out3'
option value='100'
option value='200'
option value='300'" | sed -rn "/select id='name2'/,/select/ s/option value='(.+)'/\1/p"