Trying to read nth line from file and split in to array based on delimiter
HEAD_START=4
IFS='|' read -r -a headers < sed "${HEAD_START}q;d" "/FILE_UPLOADS/Checklist-Relationship (4).txt"
The above gives "sed: cannot open [No such file or directory]"
But when i run just sed "${HEAD_START}q;d" "/FILE_UPLOADS/Checklist-Relationship (4).txt" in the prompt it works fine