LKBrwnDBA (MIS) Thanks for the tip,, However, there's going to be multiple entries in both Files.
I need the single recored(s) one by one as they're found in the file so I can alert on them.
PHV thanks so much for the tip. However, I tried your exact code and still returns no output
We're an AIX Unix system. This is what I get
$ cat test1
#!/usr/bin/ksh
while read record; do
grep "$record" File1 && echo "Found it."
done < File2
$ test1
$
Returns nothing ???
Hi Guys. Hoping you can help me. I've been scripting forever, but this one has me stumped.
File1 Contents:
Job: ZDUMM2 StDate: 20131114 StTime: 045241 Server: vq2ua740_ECQ_00 Status: Failed
Job: ZDUMM1 StDate: 20131114 StTime: 045241 Server: vq2ua740_ECQ_00 Status: Failed
File2 Contents:
Job...
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.