How to join multiple lines of file names into one with custom delimiter?

Similar to the very first option but omits the trailing delimiter

ls -1 | paste -sd "," -

Leave a Comment