bash to print words/lines vertically
Hi All,
How can I print the below supplementary groups vertically, Code:
$ id -Gn nitya Code:
Admin |
Hi nitya,
Quote:
|
Code:
for i in $(id -Gn nitya) ;do echo $i; done |
Dear RaviTezu,
Code:
id -Gn nitya | perl -pi -w -e "s/\ /`echo "\n"`/g" Thank you very much. |
Quote:
Once again thank you all. |
Have a look at perl man page & Here
|
id -Gn nitya | xargs -n1
|
All times are GMT -5. The time now is 06:58 AM. |