How to replace line-breaks with commas using grep in TextWrangler?
- Choose Find from the Search menu. TextWrangler opens the Find window.
- Select the "Grep" checkbox
- Type the string you are looking for ("\n" or "\r\n" or "\r") in the Find textfield.
- Type the replace string (", ") in the Replace text field.
- Click "Replace All"
See chapters 7 and 8 of the TextWrangler User Manual if you have problems.