Skip to content

Instantly share code, notes, and snippets.

@gsharp
Created October 25, 2014 06:38
Show Gist options
  • Save gsharp/9d1cfe60789a5cc8504c to your computer and use it in GitHub Desktop.
Save gsharp/9d1cfe60789a5cc8504c to your computer and use it in GitHub Desktop.
answer
ls | tr "\n" "," | sed 's/,$//' | sed 's/^/files=/' > files.txt; cat files.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment