File: n_files

package info (click to toggle)
fastdnaml 1.2.1-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 516 kB
  • ctags: 379
  • sloc: ansic: 4,171; sh: 570; makefile: 64
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