====== SED - Convert - Convert space with newline ====== There are a few ways to achieve that: 1. sed echo "one two three" | sed 's/ /\n/g' one two three 2. awk echo "one two three" | awk '$1=$1' RS= OFS="\n" one two three 3. tr $ echo "one two three" | tr -s ' ' '\n' one two three