Sample Header Ad - 728x90

Making each word in a text file an item in a bash array

0 votes
3 answers
77 views
I have a string of text and spaces which looks like this: macOS windows arch-linux ubuntu_linux I want to append each item (with whitespace denoting a break between items) to a bash array. How do I do this?
Asked by EmberNeurosis (5 rep)
Apr 29, 2025, 01:22 AM
Last activity: Apr 29, 2025, 07:14 AM