in reply to Re^3: one liner with separate input file?
in thread one liner with separate input file?
Over the past few days, I've been continuing to work on doing this in a perl script instead of a one-liner. I have made some progress. I does exactly what I want when the ip_addr file contains 1 ip address. I tested it again with 3, and it does the first ip address, and does not do the 2nd or 3rd. I figure if I can do it for 3, then I can do it for N ip addresses.
I'm doing this in Solaris 10, to answer your question. The current sate of the script is a mess with comments and print statements akimbo.
If this was vi, I'd be doing this:
:g/66.11.22.23/s/^/#/
The problem is that I have several hundred ip addresses. Thanks for the response, regardless.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: one liner with separate input file?
by ww (Archbishop) on Apr 17, 2015 at 21:30 UTC | |
by Laurent_R (Canon) on Apr 17, 2015 at 22:54 UTC |