linux - How do I list the output of ps -U root -u root -eo pid in a single line seperated by comma's -
when execute cmd ps -u root -u root -eo pid output in multiple lines
eg: 1 2 3 4
i see output in 1 line 1,2,3,4,5 ...
one possible way
ps -u root -u root -eo pid | tr -s "\n" ","
Comments
Post a Comment