On Sun 02/08/2015 08:23, Alessandro DE LAURENZIS wrote: [...] > operation); this could probably be more appropriate: > > alias nof='find ./ -type f -maxdepth 1 | wc -l'
Ok, that's clearly inefficient because the search is performed in all subtrees, instead of cwd only; maybe this: find . ! -name . -prune -type f -print | wc -l - Alessandro DE LAURENZIS [mailto:just22....@gmail.com] LinkedIn: http://it.linkedin.com/in/delaurenzis