Comment

Comment by addingnumbers

grep isn't necessary at all here:

  lsof -s TCP:LISTEN -i :$port

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton