utils module has been updated
This commit is contained in:
parent
65636c239f
commit
ee981b64f2
|
@ -1,3 +1,4 @@
|
|||
# Returns the pid of process in charge of the given port
|
||||
pid_for() {
|
||||
echo $(ss -lptn "sport = :$1")
|
||||
echo "---------\n"
|
||||
|
@ -7,6 +8,7 @@ pid_for() {
|
|||
|
||||
}
|
||||
|
||||
# Prints out the difference between file1 and file2
|
||||
intersect_files() {
|
||||
comm -23 <(sort $1) <(sort $2)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue