Page 2 of 2

Re: how do you pull info from a log and use in script?

Posted: Wed Nov 05, 2014 9:23 pm
by GDixon
With some changes here and changes there I have commands working and doing as expected now to put all the bits and pieces together and have it work as a tied together and functioning script


tac, grep and awk are all new to me, this is the first time I have had to use them for anything. What a learning experience this shall be for the next few weeks or months.,

Re: how do you pull info from a log and use in script?

Posted: Thu Nov 06, 2014 1:34 pm
by GDixon
wow, looks like i will be using tac, awk and grep a lot. looking into case also.
tac is nice to read from the bottom since greg makes that hard to do on it's own.
Still doing a lot of reading on awk also.

ok I have it all figured out and working well in scripts. I'll clean them up and see about making them a bit smaller and post them here later.

Thanks for pointing me in the right direction and giving a helping hand Adrian and Kmathern!
Without the help I would still be struggling with this no doubt.

Re: how do you pull info from a log and use in script? SOLVE

Posted: Fri Nov 07, 2014 3:29 pm
by GDixon
Starting a new thread to post working scripts