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

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -