Created
May 29, 2012 18:08
-
-
Save cwarden/2829805 to your computer and use it in GitHub Desktop.
glob expansion without quoting
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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