Find the answer to your Linux question:
Results 1 to 2 of 2
Hi Im trying to replace text in a file based upon a pattern. The pattern Im looking for is: Code: <styleURL>#style0002</styleURL> <name>#######6105#######</name> The # are seven alphanumeric characters before and ...
  1. #1
    Just Joined!
    Join Date
    Oct 2009
    Posts
    9

    Replace Text Based On Pattern

    Hi Im trying to replace text in a file based upon a pattern.

    The pattern Im looking for is:

    Code:
    <styleURL>#style0002</styleURL>
    <name>#######6105#######</name>
    The # are seven alphanumeric characters before and after 6105.

    I need it to replace that with this recursively:

    Code:
    <styleURL>#style0003</styleURL>
    <name>#######6105#######</name>
    Any ideas would be appreciated.

    Thanks

  2. #2
    Just Joined!
    Join Date
    Oct 2009
    Posts
    9
    Do you need any more information?

Posting Permissions

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