From 7edec93f801ea27935e14e482ec7bac9668fb5cf Mon Sep 17 00:00:00 2001 From: simono41 Date: Tue, 7 Aug 2018 08:59:10 +0200 Subject: [PATCH] refill-aur.sh --- refill-aur.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 refill-aur.sh 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