Hi All,
I have a log file which is attached here:
ACCTXN.ALLOC, ACCTXN.IDX, ACCTXN.UDX, AE_COMS, AGENCY are different file names present in my input file (it could be 000s files and all names are starting with [A-Z]).
Now, I am interested in getting the files which are having " Predicted optimal size:" section and I want to execute a command like this:
Quote:
memresize <filename> <Block size/1024>,<Modulo>
(Block size and Modulo are from "Predicted optimal size:" section)
eg:
Quote:
memresize AE_COMS 2,1
memresize AGENCY 2,3
Please help me with this...
I tried writing an awk script by myself (nawk '/^[A-Z]+/' GUIDE_LOG.txt) but i am confused how to grep for the occurrence of "Predicted optimal size:" before next "^[A-Z]+"
Note: i am on Solaris.