How do I split “abcd efgh” into “abcd” and “efgh”?
This is really self explanatory. I'm working in a bash shell and I'm really new to shell scripting. I've found a lot of information about using tr and sed but all the examples I have found so far are removing delimiters and new lines. I really want to do the opposite of that. I want to be able to separate based on a blank space. I have a string like "abcd efgh" and I need it to be "abcd" "efgh" (all without quotes, just to show groupings). I'm sure this is much simpler than I'm making it, but I'm very confused. Updated Question: I have a column of PIDs that I have put into an array, but each