How can I split a string into array in shell script?
I tried with IFS='delimiter' and it works with loops (for, while) but I need an array from that string.
How can I make an array from a string?
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
outputs
Another (bash) technique:
This limits the change to the IFS variable only for the duration of the read command.