Skip to content

Instantly share code, notes, and snippets.

@alchemycs
Created May 10, 2012 04:18
Show Gist options
  • Save alchemycs/2651002 to your computer and use it in GitHub Desktop.
Save alchemycs/2651002 to your computer and use it in GitHub Desktop.
List files in a directory terminated by comma (,) and enclosed by quotes (")
# Useful if you need a list of files in CSV or for pasting into a dictionary
ls |sed 's/\(.*\)/"\1",/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment