zsh:funcs: Add psofof to list pids from lsof
This commit is contained in:
@@ -630,3 +630,8 @@ pdfunite() {
|
|||||||
|
|
||||||
command "$@"
|
command "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# List pids of processes that use an open file
|
||||||
|
psofof() {
|
||||||
|
lsof "$@" | tail -n +2 | awk '{ print $2 }'
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user