Welcome!

Please read this important information about Spectre and Meltdown vulnerabilities.
Please read this important information about MX sources lists.
News
  • MX Linux on social media: here
  • Mepis support still here
Current releases
  • MX-17 Final release info here
  • MX-16.1 release info here
  • antiX-17 release info here
    New users
    • Please read this first, and don't forget to add system and hardware information to posts!
    • Read Forum Rules

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

Here you can exchange scripts that you created or have permission to share with other users.
Message
Author
User avatar
GDixon
Forum Regular
Forum Regular
Posts: 358
Joined: Fri Nov 02, 2007 4:39 pm

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

#11 Postby GDixon » Wed Nov 05, 2014 9:23 pm

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.,

User avatar
GDixon
Forum Regular
Forum Regular
Posts: 358
Joined: Fri Nov 02, 2007 4:39 pm

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

#12 Postby GDixon » Thu Nov 06, 2014 1:34 pm

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.

User avatar
GDixon
Forum Regular
Forum Regular
Posts: 358
Joined: Fri Nov 02, 2007 4:39 pm

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

#13 Postby GDixon » Fri Nov 07, 2014 3:29 pm

Starting a new thread to post working scripts


Return to “Scripts”

Who is online

Users browsing this forum: No registered users and 1 guest