Joining multiple lines into one with bash
Ah , the power and simplicity !
ls -1 | tr "\\n" ","
ls -1 | paste -sd ","
ls -1b | tr '\n' ';'
ls -1 | tr "\\n" ","
ls -1 | paste -sd ","
ls -1b | tr '\n' ';'
没有评论:
发表评论