File: filter

package info (click to toggle)
cruft 0.9.16
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,308 kB
  • sloc: ansic: 803; perl: 315; sh: 178; makefile: 61
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)