I don't see a use case for this to begin with.
But there's multiple ways to achieve same effect in POSIX system.
Most portable is to use sed to insert EOL's between characters. Something like
echo "$str" | sed -e "s/./\\0\\n/g;"
I don't see a use case for this to begin with.
But there's multiple ways to achieve same effect in POSIX system.
Most portable is to use sed to insert EOL's between characters. Something like
echo "$str" | sed -e "s/./\\0\\n/g;"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.