I can print a string using echo in bash shell-like
echo "This is a sample string"
.
Is there some command I can use as a pipe or some arguments to echo after the string that could result in the following output:
This
is
a
sample
string
Basically split the string and print the words each in a new line
Asked by dnaiel
(131 rep)
Jan 19, 2022, 06:00 PM
Last activity: Jul 9, 2024, 07:31 PM
Last activity: Jul 9, 2024, 07:31 PM