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

silverlight - Applying a style to ItemContainerStyle in C# -

c# - NullReferenceException in MySqlClient.NativeDriver -

php - How can I merge Nodes & Webform Submissions into instances of one general Content Type in Drupal 6? -