Welcome!
Important information
-- Required MX 15/16 Repository Changes
-- Information on torrent hosting changes
-- Information on MX15/16 GPG Keys
-- Spectre and Meltdown vulnerabilities

News
-- Introducing our new Website
-- MX Linux on social media: here

Current releases
-- MX-18.3 Point Release release info here
-- Migration Information to MX-18 here
-- antiX-17.4.1 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the 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.
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

Post by 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

Post by 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

Post by GDixon » Fri Nov 07, 2014 3:29 pm

Starting a new thread to post working scripts

Post Reply

Return to “Scripts”