Hi Luite, > but how to retrieve the number of files... hm... never actually did that > before! - list one file per line: 'ls -1 $mydir' - pass the result to word-count and count the lines: 'wc -l' Result: 'ls -1 $mydir | wc -l' :-) Cheers - michael