You want bash/ksh do the hard work, just run this:
while read ip;do perl -pi -e s/^/#/ if /$ip/ script_file; done < ip_ad +dr_file
In reply to Re: one liner with separate input file?
by FreeBeerReekingMonk
in thread one liner with separate input file?
by MrGibbs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |