fork download
  1. #!/bin/bash
  2. s='file1, file2, קובץ 3, קובץ 4, קובץ 5, סוף'
  3. sed 's/[[:space:]]*,[[:space:]]*/,/g' <<< "$s"
Success #stdin #stdout 0s 4396KB
stdin
Standard input is empty
stdout
file1,file2,קובץ 3,קובץ 4,קובץ 5,סוף