zsh:funcs: Add psofof to list pids from lsof

This commit is contained in:
2023-01-21 01:59:23 +01:00
parent 3b3ec03d01
commit 884d12d237

View File

@@ -630,3 +630,8 @@ pdfunite() {
command "$@"
}
# List pids of processes that use an open file
psofof() {
lsof "$@" | tail -n +2 | awk '{ print $2 }'
}