vee/sample-hooks/vee-hook.sh

12 lines
364 B
Bash
Raw Normal View History

2020-07-11 02:47:12 +00:00
#!/bin/sh
# this filter is a null filter; meaning it spits out
# exactly what was passed in
FORMAT_FUNC=$1 # the name of the format function used is passed in
IFS="" # ensures that leading spaces are retained
while read -r IN <&0 ; do # break after 1 sec of no stdin
echo "${IN}" # echo's stdin back out so user can see
done