Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Make complex Finder selections with glob patterns' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Make complex Finder selections with glob patterns
Authored by: fredrikw on Nov 08, '06 11:59:21AM
There's no need for the -1, the man page for ls states:
-1 (The numeric digit ``one''.) Force output to be one entry per line. This is the default when output is not to a terminal.

[ Reply to This | # ]
choice of ls arguments
Authored by: anoved on Nov 08, '06 06:41:42PM

Exactly. In fact, my first draft of the script did use -1, but after reviewing the ls man page I saw the same note cited by fredrikw and decided to omit it for the sake of simplicity (since output to "do shell script" is not to a terminal).

On the other hand, it wouldn't hurt to retain the explicit argument, and it would clarify the intent of the code, so I may include it in any future revisions. In the meantime please do make (and share) any changes you find useful. Thanks!

[ Reply to This | # ]