ert fff ** [abcfd] 123 324 444 [rty] ** fgfgf
[abcfd] 123 324 444 [rty]
sed -n '4,8p' test sed -n '/\[abcfd\]/,/\[rty\]/p' test