looking for expert sed/script help for translation/substitution

Discussion in 'Shell Script' started by hotbaws11, Sep 10, 2010.

  1. hotbaws11

    hotbaws11 New Member

    Joined:
    Sep 10, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hi All,

    I'm looking for some expert help on sed/script to work out the best way to transform one xml format into another however there are a few complexities around translation.

    The extra complexities are to:
    1) take the start and stop time (YYYYMMDDHHMMSS) and convert to start time to unix time plus output the difference in seconds between both times.
    2) oid, tsid and sid are found by looking up an external file and finding the value against the channel. For example one of the lines in the file will be 2:806:27e2=channel1

    Is there any way to write piped sed commands that can do this? If not, any ideas how the script should look like?

    Thanks in advance.




    This is the title
    This is the description
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice