hello,

> Hogyan lehet egyszeruen megallapitani, hogy egy tetszoleges
> file hossza
> nulla vagy sem? Linuxon kellene, igy a test -s renonsz.

ls -l public.php ize
-rw-r--r-- 1 airween airween    0 márc  4 14.09 ize
-rw-r--r-- 1 airween airween 1905 2009 jún 22 public.php

test `stat -c "%s" ize` = 0
echo $?
0
 
test `stat -c "%s" public.php` = 0
echo $?
1
 
 
 
a.

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

válasz