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

drupal - using views argument in the view tpl.php file -

php - Posting PHPBB Forum Thread/Post info in a website -

php - Add a blog by sending a mail to a certain emailadress -