Split string using IFS – unix.stackexchange.com 04:42 Posted by Unknown No Comments 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 Google Facebook Twitter More Digg Linkedin Stumbleupon Delicious Tumblr BufferApp Pocket Evernote Unknown Artikel TerkaitHow to speed up or make planning more interesting? – rpg.stackexchange.comDid the robot that saved Spooner's life in I, Robot break the 2nd law of robotics? – scifi.stackexchange.comDoes Cloak of Displacement hide your character's location or do others see two bodies? – rpg.stackexchange.comPerformance incentive in offer letter – workplace.stackexchange.comLooking to Identify a LEGO creator set with a hook – bricks.stackexchange.comTCP client reconnection logic running on 30 machines – codereview.stackexchange.com
0 Comment to "Split string using IFS – unix.stackexchange.com"
Post a Comment