File: collect_files

package info (click to toggle)
shell 0.2.1-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 540 kB
  • ctags: 376
  • sloc: ml: 1,828; makefile: 160; xml: 133; ansic: 78; sh: 9
file content (26 lines) | stat: -rwxr-xr-x 578 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#! /bin/sh
#
# $Id: collect_files,v 1.1 2001/10/13 10:25:09 gerd Exp $
# ----------------------------------------------------------------------
#
# usage: collect_files file ...
#
# Prints the names of the files passed as arguments which actually
# exist and are regular files.

for x in "$@"; do
    if [ -f "$x" ]; then
	echo "$x"
    fi
done

# ======================================================================
#
# $Log: collect_files,v $
# Revision 1.1  2001/10/13 10:25:09  gerd
# 	Initial revision.
#
# Revision 1.1  2001/10/12 20:19:50  gerd
# 	Initial revision.
#