Relative Content

Tag Archive for linuxshellawkscriptingnmap

how to extract just the open port numeber from nmap

right now my aim is to scan a single ip and get only the open ports printed in a single line seperated by commas.
The code below does that but it inject % at the end
The goal is to achieve port number in a single line as output without the last 2 characters (the last comma and % sign)