1#!/usr/bin/env bash
2#Makes a pkg-info.txt file with the repo description of each file3IFS=$'\n'read -rd '' -a pkgs < <( pacman -Q|cut -d' ' -f1&&printf'\0')45for i in "${pkgs[@]}";do6pkg_info=$(pacman -Ss "$i"|rg "[[:print:]]/$i" -A 1)7echo"$pkg_info">>pkg-info.txt
8done