Zámbó Marcell wrote:
>> Hogyan lehet egyszeruen megallapitani, hogy egy tetszoleges file hossza
>> nulla vagy sem? Linuxon kellene, igy a test -s renonsz.
>>
>> --
>> Gabor HALASZ <[email protected]>
> 
> 
> Ha csak a shell jó, és a shell alatt lehet érteni a bash-t, akkor kb ez:
> 
> $ read -n1 < /tmp/ures 
> $ echo $?
> 1
> 
> $ read -n1 < /tmp/teli 
> $ echo $?
> 0
> 
> 

Sajnos nem minden shell read-jenek van -n kapcsoloja

-- 
Gabor HALASZ <[email protected]>

_________________________________________________
linux lista      -      [email protected]
http://mlf2.linux.rulez.org/mailman/listinfo/linux

válasz