Find the answer to your Linux question:
Results 1 to 2 of 2
Code: 'metaUrl' :/metafile.asx?MSG=rd2hY67FGH6TbCLhQrcH0Tf0wZVitlqhMuHmRs9zQV2SYUPpMfOEe5lCuQxbiC1hjH4s4q7SwKz)w(jK5s0Q)w9JKwpLPLnqrA1H2r2aVqUu7hnEEIXMNSvCLWiRiMqu', I need only "MSG=rd2hY67FGH6TbCLhQrcH0Tf0wZVitlqhMuHmRs9zQV2SY UPpMfOEe5lCuQxbiC1hjH4s4q7SwKz)w(jK5s0Q)w9JKwpLPLn qrA1H2r2aVqUu7hnEEIXMNSvCLWiRiMqu" How to remove other things? (using shell commands)...
  1. #1
    Just Joined!
    Join Date
    Nov 2009
    Posts
    2

    Parsing

    Code:
    'metaUrl' :/metafile.asx?MSG=rd2hY67FGH6TbCLhQrcH0Tf0wZVitlqhMuHmRs9zQV2SYUPpMfOEe5lCuQxbiC1hjH4s4q7SwKz)w(jK5s0Q)w9JKwpLPLnqrA1H2r2aVqUu7hnEEIXMNSvCLWiRiMqu',
    I need only "MSG=rd2hY67FGH6TbCLhQrcH0Tf0wZVitlqhMuHmRs9zQV2SY UPpMfOEe5lCuQxbiC1hjH4s4q7SwKz)w(jK5s0Q)w9JKwpLPLn qrA1H2r2aVqUu7hnEEIXMNSvCLWiRiMqu"

    How to remove other things? (using shell commands)

  2. #2
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,422
    I'd either use perl or sed/awk for this.
    However as my sed/awk knowledge is near to zero I'd advice you to Google some.

    Using regex this would be a breeze.
    The regex you want is:
    Code:
    MSG=[^\']*
    Hope that helps
    New Users, please read this..
    Google first, then ask..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...