Skip to content

Instantly share code, notes, and snippets.

@Fintan
Created November 2, 2017 15:01
Show Gist options
  • Select an option

  • Save Fintan/f2e784140b3dbdf2124f6c976d5e6e43 to your computer and use it in GitHub Desktop.

Select an option

Save Fintan/f2e784140b3dbdf2124f6c976d5e6e43 to your computer and use it in GitHub Desktop.
output the contents of the current directory in a single space delimited string
str=''; for entry in ./*; do str+=" ./$entry"; done; echo "$str"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment