#!/bin/bash
#files 代表文件 *代表当前目录 expr是linux下的计算程序 ‘pwd’显示当前目录
counter=0for files in *do counter=`expr $counter + 1`doneecho "There are $counter files in `pwd` we need to process"