#!/bin/bashs='---------foo barmore foo bar---------'grep -Poz '(?s)-\R\K.*(?=\R-)' <<< "$s"
Standard input is empty