Skip to content

Instantly share code, notes, and snippets.

@actaneon
Created November 18, 2009 02:36
Show Gist options
  • Save actaneon/237505 to your computer and use it in GitHub Desktop.
Save actaneon/237505 to your computer and use it in GitHub Desktop.
IFS - Looping Over Space Separated Filenames
#!/bin/bash
SAVEIFS=$IFS
IFS=$(echo -en "\n\b")
for f in *
do
echo "$f"
done
IFS=$SAVEIFS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment