I want to find a number located in a text file and replace it with
the line number of the line where the number resides minus 2. The number
to find is located in the only line that starts with "SE*"and resides
between the first and second "*" in the line ..... eg  in line
SE*165*29799905~of the text file the number to replace would be 165
and the replacement number would be the line number of the
SE*165*2799905~ line minus 2. I think this is pretty simple but I'm not at
all familiar with grep and only mildly literate with applescript.
Thanks for any help.
Douglas McKibbin

--
------------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_script.shtml>
List archives: <http://www.listsearch.com/bbeditscripting.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to