in reply to one liner with separate input file?
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: one liner with separate input file?
by MrGibbs (Initiate) on Apr 15, 2015 at 19:54 UTC | |
by FreeBeerReekingMonk (Deacon) on Apr 15, 2015 at 22:35 UTC |