I am reading a file which contains the following config as an array:
$ cat ./FILENAME
*.one.dev.arr.name.com
*.one.dev.brr.name.com
*.one.dev.sic.name.com
*.one.dev.sid.name.com
*.one.dev.xyz.name.com
*.one.dev.yza.name.com
The array is read
IFS='$\n' read -d '' -r -a FILENAME < ./FILENAME
I need the format to be of the following format:
'{*.one.dev.arr.name.com,*.one.dev.brr.name.com,*.one.dev.sic.name.com,*.one.dev.sid.name.com,*.one.dev.xyz.name.com,*.one.dev.yza.name.com}'
I've tried using printf, the tricky part is the wildcard(*) at the start of the name.