Skip to content

Instantly share code, notes, and snippets.

@cwarden
Created May 29, 2012 18:08
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 cwarden/2829805 to your computer and use it in GitHub Desktop.
Save cwarden/2829805 to your computer and use it in GitHub Desktop.
glob expansion without quoting
$ for i in *.gz; do ls -l $i; done
ls: cannot access file: No such file or directory
ls: cannot access 1.gz: No such file or directory
$ for i in *.gz; do ls -l "$i"; done
-rw-r--r-- 1 cwarden cwarden 27 May 29 11:03 file 1.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment