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

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

PostgreSQL 9.x - pg_read_binary_file & inserting files into bytea -

asp.net - call stack missing info on mono with apache and mod_mono -