ls -l . | egrep -c '^-'
Count number of files in a directory using Linux cli2020年7月14日 · Shafiq Alibhai | 语言:EnEsFrls -l . | egrep -c '^-' Comments are powered by Remark42 and require JavaScript.