Move all scripts to 'src' directory

This commit is contained in:
2024-12-21 00:52:15 +00:00
parent b32ca11042
commit 1dc275d8a8
26 changed files with 0 additions and 0 deletions

7
src/list_manual_pkgs.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
# one-liner to list just the names of packages manually-installed with xbps-install, with no version numbers etc
xbps-query --list-manual-pkgs | sed "s/-[0-9].*//g"
# i originally wrote this using awk, but i realised that sed would allow for a more elegant implementation, although there was no meaningful speed difference during my tests
# alternative awk version:
# xbps-query --list-manual-pkgs | awk '{gsub(/-[0-9]+.*$/, ""); print $0}'