From 0e9bf0620410837f42c8d4cb2cb090cbdae93f01 Mon Sep 17 00:00:00 2001 From: Leonid Pliushch Date: Thu, 19 Nov 2020 15:42:03 +0200 Subject: [PATCH] whatprovides: exact path matches + sorted output --- whatprovides | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/whatprovides b/whatprovides index 0a90e7c..25b8f29 100755 --- a/whatprovides +++ b/whatprovides @@ -26,7 +26,7 @@ while getopts :hp:f: option; do done if [ $# -ge 1 ]; then - grep -rwh "$(realpath "$1")" "$DB_PATH" + grep -rwhP "$(realpath "$1")\$" "$DB_PATH" | sort else show_usage exit 1