Coming Soon: GET:IT Endpoint Management 1-Day Conference on September 28th at 9:30 AM ET Coming Soon: GET:IT Endpoint Management 1-Day Conference on September 28th at 9:30 AM ET

Awk / sed

Home Forums Other Open Source Awk / sed

Viewing 1 post (of 1 total)
  • Author
    Posts

  • ikon
    Member
    #151383

    Anyone have any experince with sed or AWK?

    im running a BASH script that collect data from MYSQL and echo’s the contents to a tab delimited file, before the data is echo to the file i pipe the output through sed to add formatting.

    im having some trouble with trying to add a new line after a certain pattern e.g

    Refill Liquid “2010/08/21 12:59” 00:06:00
    Refill Liquid “2010/08/21 11:57” 00:06:00
    Refill Liquid Im “2010/08/21 11:57” 00:06:00
    Preassure fault “2010/08/21 11:57” 00:06:00
    Refill Liquid “2010/08/21 14:57” 00:06:00
    Refill Liquid Im “2010/08/21 14:57” 00:06:00
    Pressure Fault “2010/08/21 14:57” 00:06:00

    Fields are tab delimited, im trying to add a line space where the timestamp field is different e.g

    Refill Liquid 2010/08/21 12:59 00:06:00

    Refill Liquid 2010/08/21 11:57 00:06:00
    Refill Liquid Im 2010/08/21 11:57 00:06:00
    Preassure fault 2010/08/21 11:57 00:06:00

    Refill Liquid 2010/08/21 14:57 00:06:00
    Refill Liquid Im 2010/08/21 14:57 00:06:00
    Pressure Fault 2010/08/21 14:57 00:06:00

    Thanks in advance.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

Live Webinar: Active Directory Security: What Needs Immediate Priority!Live on Tuesday, October 12th at 1 PM ET

Attacks on Active Directory are at an all-time high. Companies that are not taking heed are being punished, both monetarily and with loss of production.

In this webinar, you will learn:

  • How to prioritize vulnerability management
  • What attackers are leveraging to breach organizations
  • Where Active Directory security needs immediate attention
  • Overall strategy to secure your environment and keep it secured

Sponsored by: