#!/bin/bash awk -v s='numberone' 'index($0, "[" s "]"){p=1;next} p && /^\[/{p=0} !p' << EOF[numberone]someoptionmore option[numbertwo]optionEOF
Standard input is empty
[numbertwo] option
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!