You're viewing a comment by Pierre and its responses.

January 07, 2011, 18:51

How do you print in awk w/out new line char?
e.g. : chkconfig --list | awk '{print $1}'
service1
service2
service3

INSTEAD I want:
service1, service2, service3

Comment Responses

Kyaw Permalink
March 14, 2011, 03:55

chkconfig --list | awk 'BEGIN { ORS=" ,"}; {print $1}'

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "cdrom_92": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.