Hi,
I am using the script to print the portion of the file containing a particular string. But it is giving error "For Reading (No such file or directory). I am using cygwin as unix simulator.
cat TT35*.log | gawk -v search="12345678" '
/mSOriginating /,/disconnectingParty/ {
block = (block ? block ORS : "") $0;
}
/disconnectingParty/ {
if (block ~ search)
print block;
block = "";
} '
Is something wrong with the script. Pls help me in resolving the issue.
Thnx in advance.