SHARE
TWEET

antipope_filter

a guest Oct 18th, 2011 28 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. antipope_filter () {
  2.     local state=0  a b c OIFS="$IFS"
  3.  
  4.     IFS=
  5.     while read a ; do
  6.         case "$a" in
  7.             Poster:\ * )
  8.                 c="$( sed 's/^Poster: *//' <<< "$a" )"
  9.                 state=print
  10.                 while read b ; do
  11.                     if [ "$c" = "$b" ] ; then
  12.                         state=skip
  13.                         break
  14.                     fi
  15.                 done < ~/.killfile-for-antipope
  16.         esac
  17.         if [ $state = print ] ; then echo "$a" ; fi
  18.     done
  19.     IFS="$OIFS"
  20. }
  21.  
  22.  
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top