about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2015-12-17 16:55:53 +0100
committerChristian Neukirchen <chneukirchen@gmail.com>2015-12-17 16:55:53 +0100
commitde21325de3c510d62e454b6ffe2620dfa52faa1f (patch)
tree8d84b36c1be08f981e4da4245cd9fa5013947a4d
parent3ad0fa1d416b313ab629f2d81defb3f4e17a975c (diff)
downloadxtools-de21325de3c510d62e454b6ffe2620dfa52faa1f.tar.gz
xtools-de21325de3c510d62e454b6ffe2620dfa52faa1f.tar.xz
xtools-de21325de3c510d62e454b6ffe2620dfa52faa1f.zip
add xilog
-rw-r--r--README1
-rwxr-xr-xxilog4
2 files changed, 5 insertions, 0 deletions
diff --git a/README b/README
index ba67bdc..e0bdfe3 100644
--- a/README
+++ b/README
@@ -16,6 +16,7 @@ https://github.com/voidlinux/xbps
   xgrep PATTERN PKGS... - search files limited to XBPS package contents
   xhog - list installed XBPS packages ordered by size
   xi PKGS... - like xbps-install -S, but take cwd repo and sudo/su into account
+  xilog [PATTERN] - list installed packages by install-date
   xlg PKG - open short commit log for XBPS template
   xlint TEMPLATE - scan XBPS template for common mistakes
   xlocate [-u | PATTERN] - locate files in all XBPS packages
diff --git a/xilog b/xilog
new file mode 100755
index 0000000..586f173
--- /dev/null
+++ b/xilog
@@ -0,0 +1,4 @@
+#!/bin/sh
+# xilog [PATTERN] - list installed packages by install-date
+xbps-query -p install-date -s '' |
+	sort -t: -k2 |column -t -s: -o: |grep -e "${1:-.}"