I can use <(some command)
in place of a file, but how can I achieve the equivalent with a variable? I'm using the paste
command, which expects files as arguments, and want to use the contents of SOMEVAR
as though it were a file.
paste <($SOMEVAR)
Update0
I'd expect something like <<<(SOMEVAR)
to exist. <(echo $SOMEVAR)
doesn't work, because echo inserts spaces between arguments, so newlines are lost.