zsh:psofof(): Remove duplicates

This commit is contained in:
2023-01-21 02:00:59 +01:00
parent 884d12d237
commit e9a82452fd

View File

@@ -633,5 +633,5 @@ pdfunite() {
# List pids of processes that use an open file
psofof() {
lsof "$@" | tail -n +2 | awk '{ print $2 }'
lsof "$@" | tail -n +2 | awk '{ print $2 }' | sort -u
}