Pass the host file name to the Perl script on the command line as an argument. Change the script so that within it you open the host file (by name) and read n 'host' names at a time and process them. You might even make n an argument to the script along with the file name.
In reply to Re: split on every n lines
by AnomalousMonk
in thread split on every n lines
by sunil9009
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |