shell 统计当前目录下的文件个数

    技术2022-05-20  37

    #!/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"


    最新回复(0)