Wednesday, March 31, 2010

command to join multi-line output with awk

This outputs a single line with a colon separating the files in the listing:

ls /usr/local/jira/atlassian-jira/WEB-INF/lib/* | awk '{ ORS=":"; print; }'

No comments: