File: filter

package info (click to toggle)
cruft 0.9.19
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,476 kB
  • ctags: 101
  • sloc: ansic: 807; perl: 315; sh: 178; makefile: 59
file content (10 lines) | stat: -rwxr-xr-x 233 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
#!/bin/dash
# Read standard input and filter out files which match filter patterns listed
# in the file given as the first argument
set -e
. /usr/lib/cruft/common.sh
cruft_debug 2

list="$1"
/usr/lib/cruft/filter_shell $(cat $list)