Skip to content

Instantly share code, notes, and snippets.

@pablasso
Created August 16, 2011 18:07
Show Gist options
  • Save pablasso/1149747 to your computer and use it in GitHub Desktop.
Save pablasso/1149747 to your computer and use it in GitHub Desktop.
ls on a dir with spaces
#!/bin/bash
IFS=$','
vals='./this is a test/,./test2 back'
for i in $vals; do echo $i; eval ls "\"$i\""; done
unset IFS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment