using sed

hi.. i am trying to find files containing a certain text. the following is my code

find . -exec grep -l  "sometexttobefound" '{}' \; -print | uniq | sed 's/[\r\n]/,/g' `

the result of the find might return multiple filepaths, but they are printed on different lines. my aim is to print them on the same line separated by comma. i used "sed" for this purpose as shown in code, but it doesn seem to be working.

infact, not quite sure if my regular exp is right for carriage return. ????

var=$(find . -exec grep -l  "sometexttobefound" '{}' \;)
var=$(echo $var | sed 's/ /,/g')
echo $var

:):b: