utils module has been updated

This commit is contained in:
Sameer Rahmani 2018-02-23 15:42:05 +00:00
parent 65636c239f
commit ee981b64f2
1 changed files with 2 additions and 0 deletions

View File

@ -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)
}