whatprovides: exact path matches + sorted output
This commit is contained in:
parent
9472966b92
commit
0e9bf06204
|
@ -26,7 +26,7 @@ while getopts :hp:f: option; do
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ $# -ge 1 ]; then
|
if [ $# -ge 1 ]; then
|
||||||
grep -rwh "$(realpath "$1")" "$DB_PATH"
|
grep -rwhP "$(realpath "$1")\$" "$DB_PATH" | sort
|
||||||
else
|
else
|
||||||
show_usage
|
show_usage
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in New Issue