figured it out with a loop
for i in $(snmpwalk.sh <mib> s | awk /block/ | sed -e 's/^.*Status.//' -e 's/ =.*//'); do <proprietary command> | awk /$i/;done
thanks for the replies
This is being run on a stripped down version of NetBSD. This OS is on a SAN device. I have sed, awk, and shell. Bash was removed a little while back.
I'm getting closer, but I can't seem to work it into my situation. The decimal messes with the 'greater than' and 'less than'...
Indeed, grep would save the day...however...
output from shell:
#grep
grep: not found
#
unfortunately grep is not on this OS
I think I could finagle it into a 'one liner' if I could just figure out if/how awk can verify that there is a match or not.
if $vol is not null (using awk)
then...
Essentially yes.
For matches in file_a, print lines in file_b which contain match. If no matches in file_a, stop and print "no match"....or even no output is fine. I was trying to make it as simple as possible for anyone who wished to help.
This is actually being run on a live system...
This may be a simple one for the bigger brains of the forums, but I'm a scripting novice so it is driving me nuts.
file_a contains:
1
2
3
4
5
6
7
file_b contains:
7 hens
22 gorillas
31 kangaroos
working scriptlet:
i=$(awk /7/ file_a)
awk /$i/ file_b
output would...
open a notepad and copy paste the following to it:
Windows Registry Editor Version 5.00
[-HKEY_CURRENT_USER\Software\Classes\.exe\shell\open\command]
[-HKEY_CURRENT_USER\Software\Classes\secfile\shell\open\command]
[-HKEY_CLASSES_ROOT\.exe\shell\open\command]
[HKEY_CLASSES_ROOT\.exe]...
Knoppix has helped me recover many 'a informations from "dead" hard drives. Just leave it plugged in while you boot Knoppix, if you are lucky it will pick right up on it and you can copy all the goods. good luck.
Might not need to reinstall - just try that ^^^^^ - Our computers at work did the same thing until the drive option was changed, then they booted with no problem.
"The hollow space of the cave was filled with this mineral rich hot water and remained filled for about 5000,000 years."
five-thousand...hundred...thousand?
I saw the Nat Geo show, it was amazing.
Ok....A man needs to know when to say when.
the following make over 150k per tick and have max virus and vault. PM me if you are interested.
I have three accounts:
Player: tuxdave
Overall Rank: 28th
Megahertz Rank: 62nd
Bandwidth Rank: 25th...
Please give me one pity strike against UsedPokeball - the jerk has been picking away at me all night. Now I make no monies per tickie....
THIS....IS......ATOOOOOT!
Attacker Time Outcome Credits Lost Machines Lost
kynic 32 minutes ago You were...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.