![]() |
| |||
| On wto, 14 mar 2006 o 19:46 GMT, Rita wrote: > Hi , > Is there any command in linux to know how many files are in directory? If you need it to some script, this might be one of the possibilities: n=0;for i in /tmp/*;do [ -f "$i" ] && n=$[$n+1];done;echo $n *it works properly under bash -- pozdr. Slawomir Kawala JID: slwkk [at] alternatywa [dot] net GSM: (0)601-398-348 |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |