Splitting by separator changes
suggest changeWe can replace space separators with newlines, as in the following example.
echo $sentence | tr " " "\n"
It'll split the value of the variable sentence and show it line by line respectively.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents