On Dec 9, 2010, at 5:33 PM, Randal L. Schwartz wrote:
> Just use the shell:
>
> for i in *.meta; do echo "something with $i"; done
Safer, but I believe that still blows up if there are too many files that match
the expression.
IMO, it's better to do something like:
cd $directory
ls -1 | grep '\.meta$' > $tmpfile
And then process the $tmpfile line-by-line, using whatever method you prefer.
--
Brad Knowles <[email protected]>
LinkedIn Profile: <http://tinyurl.com/y8kpxu>
_______________________________________________
Discuss mailing list
[email protected]
https://lists.lopsa.org/cgi-bin/mailman/listinfo/discuss
This list provided by the League of Professional System Administrators
http://lopsa.org/