Comment Comment by addingnumbers grep isn't necessary at all here: lsof -s TCP:LISTEN -i :$port parent addingnumbers 3 years ago