#!/bin/bashs='[profile gateway][profile personal][profile DA][profile CX]'sed -n 's/.*\[profile *\([^][]*\).*/\1/p' <<< "$s"
Standard input is empty
gateway personal DA CX
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!