I want to store each output in double quoted array values. values can have space also.FOUNDFILES=($(locate --database ~/.locate.db -i -b $INPUT))if input to the locate command is very very latest (where very very latest is the file name). it should be stored as very very latest. Locate also locates other files with word very in them. so if there is some other file like heisvery, it should also get stored like heisvery, where very very latest is the 0th value and heisvery is value 1 of the array.
how to store output of a command into array with each value in a double quote
shell script;quoting;filenames;locate