Not logged in
Log in now
Create an account
Subscribe to LWN
Recent Features
LWN.net Weekly Edition for May 24, 2012
A uTouch architecture introduction
LWN.net Weekly Edition for May 17, 2012
Tasting the Ice Cream Sandwich
Highlights from the PostgreSQL 9.2 beta
Control characters in file names
Posted Nov 25, 2010 22:00 UTC (Thu) by Spudd86 (subscriber, #51683) [Link]
see here: http://www.dwheeler.com/essays/filenames-in-shell.html and here: http://www.dwheeler.com/essays/fixing-unix-linux-filename... although for some reason I remember it being much worse than that, though being correct everywhere in your script could eventually be a pain.
Posted Dec 2, 2010 19:19 UTC (Thu) by Ross (subscriber, #4065) [Link]
Posted Nov 25, 2010 23:30 UTC (Thu) by cmccabe (subscriber, #60281) [Link]
The for loop should be
for i in *; do cmd "./$i"; done;
In case one of the filenames begins with a dash.
Copyright © 2012, Eklektix, Inc. Comments and public postings are copyrighted by their creators. Linux is a registered trademark of Linus Torvalds