>>>>> "Jan" == Jan L Peterson <[email protected]> writes:
Jan> Also, can you suggest any alternate ways to get a list of files Jan> ending in .meta that doesn't use a wildcard? It's not the wildcard I'm complaining about, it's the ls. ls *wild*card* does this: 1) shell looks at all the files 2) shell finds all the ones that match *wild*card* 3) shell launches "ls" with all of those names already in its argv[] 4) ls wakes up 5) ls looks at each of its arguments in turn and says "yup, that's a file" 6) ls echos that item to stdout In this case: LS IS COMPLETELY USELESS so why are you wasting it? In fact, it's even dangerous, if any of those matched names are actually directories. Just use the shell: for i in *.meta; do echo "something with $i"; done -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[email protected]> <URL:http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.posterous.com/ for Smalltalk discussion _______________________________________________ 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/
