we want to delete all "," separator ONLY after the last string ( any string )
echo "df true , , ," | sed 's/,,*$//' df ,true , ,
but syntax delete only one ","
what need to fix in my syntax so all "," after the last string will be deleted ?
echo "dejd ,dede,dede 73hygys626^%%,J , , ,," | sed ...... expected output dejd ,dede,dede 73hygys626^%%,J
echo "lfr r.,r,ff rger.ref done ,,, , " expected output lfr r.,r,ff rger.ref done