How separate grep result with comma in bash? -
i have next grep command echo $a | grep -po '(?<=demo-jms2;)[^;]+'. how can separate result of command comma?
echo $a | grep -po '(?<=demo-jms2;)[^;]+'
how pipe grep output tr '\n' ','
tr '\n' ','
bash grep design-patterns
No comments:
Post a Comment