I have text file containing quotes inside single quotes. They are "not" one liners. eg there may be two quotes in same line, but all quotes are inside single quotes like
'hello world' 'this is the second quotes' 'and this is the third quoted text'
how can I create an array and making each quoted text an element of the array. I've tried using
declare -a arr=($(cat file.txt))
but that makes it space separated. assigns each word an element in the array
eval arr=($(cat file))?readarrayto populate your array.