[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: domanda rapida



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Roberto Rotta, Mon, Sep 16, 2002 at 01:51:51PM +0200:
> > find /path/to/directory/* | wc -l
> Pero` forse cosi` conteggia anche le directory e i file nelle
> subdirectory
> $ ls -al | grep -v ^- | wc -l

la madonna, TRE processi!
bastava aggiungere -maxdepth 0 -type f al find!

io resto dell'idea che se non hai questo problema si possa fare un 
ls -l e sottrarre 2 al numero dei links (quello dopo i perms).

p.
- -- 
pbm - "somewhere in these nighlights lies the answer
    -  and you can get diamonds, diamonds by the yard"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9hciAWy5xL+LuXvARAlNMAKCsc1nadRK2yZMjmBuYeDk+vvN77gCeI0pD
H/Ny2xPl8j6G8Aa4v29Ksas=
=ZkLf
-----END PGP SIGNATURE-----



Reply to: