Split string using IFS – unix.stackexchange.com

I have written a sample script to split the string but it is not working as expected #!/bin/bash IN="One-XX-X-17.0.0" IFS='-' read -r -a ADDR <<< "$IN" for i in "${ADDR[@]}"; do echo "...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "Split string using IFS – unix.stackexchange.com"