Skip to content

Instantly share code, notes, and snippets.

@reidransom
Created August 9, 2013 23:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reidransom/6198304 to your computer and use it in GitHub Desktop.
Save reidransom/6198304 to your computer and use it in GitHub Desktop.
Execute a command for each file in a folder

Execute a command for each file in a folder

$ for f in *.xls ; do xls2csv "$f" "${f%.xls}.csv" ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment