File: n_files

package info (click to toggle)
fastdnaml 1.2.2-18
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,156 kB
  • sloc: ansic: 3,910; sh: 571; makefile: 46
file content (7 lines) | stat: -rw-r--r-- 124 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
#! /bin/sh
#
nFile=0
for fileName in "$@"; do
    if test -f "$fileName"; then nFile=`expr $nFile + 1`; fi
done
echo $nFile