in reply to I want to change something in this code

for I in $(cat ip-list.txt); do ./my-leet-scanskript -i $I; done;

...or...

<ip-list.txt xargs -I % ./my-leet-scanskript -i %

You're not really here to learn Perl, and the shebang line at the start of the script gives the impression that you're working within a *nix environment, so you may as well just leave the script's code alone and leverage the command line bash tools that you are probably more familiar with.


Dave