[linux] bash+ls

Matus "fantomas" Uhlar uhlar na fantomas.sk
Pátek Srpen 22 10:15:23 CEST 2003


On 21.08 16:11, michal lackovic wrote:
> Chcel by som do premennej nacitac napriklad vsetky *.doc a *.xls subory v
> adresary. Zial zatial viem iba jeden typ na jednu premennu hodnotu:
> DOC=`ls *.doc`...

ak ich nepotrebujes zotriedene, staci:

DOCXLS=`echo *.doc *.xls`

-- 
Matus "fantomas" Uhlar, uhlar na fantomas.sk ; http://www.fantomas.sk/
Warning: I don't wish to receive e-mail advertising to this address.
Varovanie: Nezelam si na tuto adresu dostavat akukolvek reklamnu postu.
"The box said 'Requires Windows 95 or better', so I bought a Macintosh".



Další informace o konferenci linux