intersect_files function has been added

This commit is contained in:
Sameer Rahmani 2018-02-22 12:15:26 +00:00
parent e4e68112e9
commit 498e65f525
1 changed files with 4 additions and 0 deletions

View File

@ -6,3 +6,7 @@ pid_for() {
echo $(lsof -n -i ":$1" | grep LISTEN)
}
intersect_files() {
comm -23 <(cat $1) <(cat $2)
}