#!/bin/bash

IFS= read -ra arr < <(grep '!\[.*\]')

declare -p arr