sed:replace_space_with_newline
This is an old revision of the document!
SED - Replace 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
sed/replace_space_with_newline.1594805433.txt.gz ยท Last modified: 2020/07/15 09:30 by 127.0.0.1