I would like to redirect the output of a command to input of mapfile.I'm doing this and it's working:xls2csv -x $files -W -q | sed '/^$/d' | grep -v '^The' > lista.txtmapfile -t titulos < lista.txtI'm trying to use just one command to achieve this. But none of them are working.xls2csv -x $files -W -q | sed '/^$/d' | grep -v '^The' > mapfile -t titulosxls2csv -x $files -W -q | sed '/^$/d' | grep -v '^The' | mapfile -t titulosmapfile -t titulos < <( xls2csv -x $files -W -q | sed '/^$/d' | grep -v '^The' )
mapfile and redirection issue
bash;pipe;command