File: _binfilter.sh

package info (click to toggle)
swish-e 2.4.5-5
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 7,044 kB
  • ctags: 7,630
  • sloc: ansic: 47,771; sh: 8,968; perl: 3,170; makefile: 587; xml: 9
file content (12 lines) | stat: -rwxr-xr-x 362 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

# Example of a shell script filter

# Simple filter for binary files (eg: exe files) 

# Note: This is just an example of a shell script.  In general you would not
# use a shell script to just call a program -- rather call the program directly from
# swish using a FileFilter command.
# e.g. FileFilter .exe strings "'%p'"

strings "$1" - 2>/dev/null