Skip to content

Instantly share code, notes, and snippets.

@cwarden
Created January 18, 2011 18:17
Show Gist options
  • Select an option

  • Save cwarden/784881 to your computer and use it in GitHub Desktop.

Select an option

Save cwarden/784881 to your computer and use it in GitHub Desktop.
set IFS to newline
(IFS=$(echo -e "\n\r"); for i in $(ls -1 *.); do ...; done)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment