daily pastebin goal
21%
SHARE
TWEET

Untitled

a guest Jan 12th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #! /usr/bin/bash
  2.  
  3. pacman -Qsq | while read line;
  4.   do echo \> checking $line; pacman -Qlq $line | grep -vP '^/etc' | grep -vP '/$' |
  5.     while read line2
  6.       do if [[ ! -e "$line2" ]] && [[ ! -s "$line2" ]]
  7.         then echo $line $line2 | tee -a  corrupt; break
  8.       fi
  9.   done
  10. done
  11.  
  12. echo Now run 'xargs pacman -S <<< "$(cut -d "\' \'" -f 1 corrupt)"'
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