On 08/09/2017 05:47 PM, bruce wrote:
xx="pgrep -f '"${aa}"' | wc -l"
echo $xx   <<< this dsplays the test pgrep
echo `$xx`   <<  err msg
echo `${xx}`  << err msg...

eval "$xx"


echo $(eval "$xx")

In the invocation you're trying to use, "|" is being passed as an argument to pgrep, rather than creating a pipe between commands/processes.
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org

Reply via email to