My omnium-gatherom of scripts and source code.
at main 8 lines 284 B view raw
1#!/usr/bin/env bash 2#Makes a pkg-info.txt file with the repo description of each file 3IFS=$'\n' read -rd '' -a pkgs < <( pacman -Q|cut -d' ' -f1&&printf '\0' ) 4 5for i in "${pkgs[@]}";do 6 pkg_info=$(pacman -Ss "$i"|rg "[[:print:]]/$i " -A 1) 7 echo "$pkg_info">>pkg-info.txt 8done