2015-04-22 115 views

回答

2

find /some/path -name "aaa.*" | wc -l

1
#! /bin/ksh 

cd $1 
list=`ls -l | grep -v '^d' | wc -l` 
echo $list