On Oct 23, 2017, at 08:37,
pgsql-general-owner@xxxxxxxxxxxxxx wrote:
To get input from a file w/o a sub-shell,
you can put the input at the end of the loop:
====
#!/bin/sh
cat > file <<EOF
ab
cd
ef
EOF
while read
a; do
b="$b
$a"
echo $b
done < file
====
-Randy
|