whatprovides: exact path matches + sorted output

This commit is contained in:
Leonid Pliushch 2020-11-19 15:42:03 +02:00
parent 9472966b92
commit 0e9bf06204
No known key found for this signature in database
GPG Key ID: 45F2964132545795
1 changed files with 1 additions and 1 deletions

View File

@ -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