At 12:20 -0700 31/10/08, glencoe wrote:

>Is it possible to increment a sequence number automatically by 1? ...

With a Unix Filter :


#!/usr/bin/perl
while (<>) {
        m~(<Id>)([0-9]+)(</Id>)~;
        $old_id = $2;
        $new_id = $old_id + 1;
        s~$old_id~$new_id~;
        print;
}

JD

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "BBEdit Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a specific feature request or would like to report a suspected (or 
confirmed) problem with the software, please email to "[EMAIL PROTECTED]" 
rather than posting to the group.
-~----------~----~----~----~------~----~------~--~---

Reply via email to