Re: Find duplicate numbers and replace
Re: Find duplicate numbers and replace
- Subject: Re: Find duplicate numbers and replace
- From: "Mark J. Reed" <email@hidden>
- Date: Wed, 14 May 2008 12:59:28 -0400
Incomplete fix. Here's the whole new version.
do shell script ("perl -i.bak -e 'undef $/; $_ = <>; while
(/(\\d+)\\[F\\]/g) { my $n = $1; my $a = \"a\"; substr($_, pos($_))
=~ s/(^|\\D)$n\\[F\\]/$1 . $n . $a++ .\"[F]\"/ge;} print;' " & POSIX
path of myTextFile)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden