I have a file such that
List : a, b, c, d
I want to list this as
List
a
b
c
d
however the trick is the number of arguments in the list is varies. There might be 0-7 variables .
Can you help me?
I have a file such that
List : a, b, c, d
I want to list this as
List
a
b
c
d
however the trick is the number of arguments in the list is varies. There might be 0-7 variables .
Can you help me?
echo 'List : a, b, c, d'|tr ':,' '\n\n'
And what if i have the list such as
a,b,c,d
I couldn't edit it.
$ echo 'a,b,c,d' | tr ':,' '\n\n'
a
b
c
d
Anything wrong with that?
It workds thanks..
I tried it before but I didnt realise it worked because of screen settings..
Thanks again..
$ echo " a, b, c, d" | tr ',' '\n'
a
b
c
d