is there any way to pass arguments to grep so that it can print...
before i go on, let me explain what I have so that it makes more sense.
i have a list of sites that we'll be upgrading soon. there are 48 pages worth of sites. i've been given the mundane task of generating a list of sites that only have 1 or 2 units per site.
now, if you look at the items, they look something like this:
somegroup {
set xtermCmd 'telnet%n"
set xtermNames "
ip address 1
ip address 2
ip address 3
ip address 4
ip address 5
"}
what i'd like is to enter a command that will show me the sites that only have 1 or 2 ip addresses. this way I can generate this list quickly and i don't have to manually go in and count and retype every site.
before i go on, let me explain what I have so that it makes more sense.
i have a list of sites that we'll be upgrading soon. there are 48 pages worth of sites. i've been given the mundane task of generating a list of sites that only have 1 or 2 units per site.
now, if you look at the items, they look something like this:
somegroup {
set xtermCmd 'telnet%n"
set xtermNames "
ip address 1
ip address 2
ip address 3
ip address 4
ip address 5
"}
what i'd like is to enter a command that will show me the sites that only have 1 or 2 ip addresses. this way I can generate this list quickly and i don't have to manually go in and count and retype every site.