Why Doesn't This Work?
I have a bash script. Here's a portion:
pi=$(subscription-manager list --available | awk '/Pool ID/ {print $3}')
echo $pi
subscription-manager attach --pool=$pi
When I run it, it shows:
[vagrant@rhel-cdk shared]$ sudo ./installdotnet.sh
8a85f981564576f701564c87d8f9357e
could not be found.1564576f701564c87d8f9357e
Why is the pool id getting mangled??
pi=$(subscription-manager list --available | awk '/Pool ID/ {print $3}')
echo $pi
subscription-manager attach --pool=$pi
When I run it, it shows:
[vagrant@rhel-cdk shared]$ sudo ./installdotnet.sh
8a85f981564576f701564c87d8f9357e
could not be found.1564576f701564c87d8f9357e
Why is the pool id getting mangled??