diff --git a/refill-aur.sh b/refill-aur.sh new file mode 100755 index 0000000..b2307b7 --- /dev/null +++ b/refill-aur.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +set -ex + +fill="$(pacman -Qqm)" + +while (( "$(expr $#)" )) +do + for wort in ${fill} + do + if grep ${wort} $1; then + grep -v ${wort} $1 > tempdatei + mv tempdatei $1 + else + echo "überspringe ${wort}" + fi + done + shift +done