[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

BASH: expansion af stjerne *



Jeg har nu en oplevelse, jeg har haft før. I et script a la:

----------------------
for f in *.txt; do
        # do something with $f
	...
done
----------------------

Det er som om *.txt ikke altid expanderes, som jeg forventer. Jeg har
ikke helt klar over i hvilke tilfælde det fejler, men ind i mellem får
jeg en fejl meddelelse, a la:

file *.txt doesn't exist

Er der nogen der kan genkende dette?
Kan det have noget at gøre med antallet af filer der matcher *.txt? Med
andre ord: hvad er grænsen i antal filer?
Eller hvad kan problemet være?

mvh Kristian





 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 22:43 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *