3 Updated with feedback in the comments.
source | link

Not by itself, no. But with some quick scripting you can.

For example, on *nix systems:

nmap -p `cat ports.list` ...

This would allow you to maintain a list of ports in a file in a CSV format.

If you would prefer to have one port per line, you can do this (thanks @bonsaiviking) on *nix systems:

nmap -p $(tr '\n' , <ports.list)

Not by itself, no. But with some quick scripting you can.

For example:

nmap -p `cat ports.list` ...

This would allow you to maintain a list of ports in a file.

Not by itself, no. But with some quick scripting you can.

For example, on *nix systems:

nmap -p `cat ports.list` ...

This would allow you to maintain a list of ports in a file in a CSV format.

If you would prefer to have one port per line, you can do this (thanks @bonsaiviking) on *nix systems:

nmap -p $(tr '\n' , <ports.list)
2 Fix the backticks since iOS keyboard is annoying.
source | link

Not by itself, no. But with some quick scripting you can.

For example:

nmap -p 'cat`cat ports.list'list` ...

This would allow you to maintain a list of ports in a file.

Not by itself, no. But with some quick scripting you can.

For example:

nmap -p 'cat ports.list' ...

This would allow you to maintain a list of ports in a file.

Not by itself, no. But with some quick scripting you can.

For example:

nmap -p `cat ports.list` ...

This would allow you to maintain a list of ports in a file.

1
source | link

Not by itself, no. But with some quick scripting you can.

For example:

nmap -p 'cat ports.list' ...

This would allow you to maintain a list of ports in a file.