1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

looking for expert sed/script help for translation/substitution

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

  1. hotbaws11

    hotbaws11 New Member

    Sep 10, 2010
    Likes Received:
    Trophy Points:
    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