I have an array in bash script. This script gets executed through python send command and while executing the array line of the script,
it returns -
Syntax error: "(" unexpected
due to this line of code -
pci_addr_0=`lspci | grep -i abcde | grep -i "\.0 " | awk -F " " {'print $1'}`
pci_addr_list_0=(`echo $pci_addr_0 | tr " " "\n"`)
I tried slash and double quotes, but the array doesn't get assigned with values as expected.
How to avoid python from invalidating bash array braces?