On 5/1/2009, Greg Reyna said: >I'm trying to write a script that will open an ascii file, search for >a word, delete the entire line that word is on, then search again to >EOF, and save. Apple Script gives me the shivers. Usually, if I can >find a script that does something similar to what I need, I can modify >it to make it work. Can't find anything like this, simple as it seems >to be.
Does it have to be a script? This Grep search pattern: ^.*[^\w\r]?YOUR_WORD_HERE(?:\r|\W.*(?:\r|\Z)|\Z) Seems like it will find what you want. Use an empty replace pattern. Even if you do have to use a script for some reason, that grep pattern is probably a good starting point. Or, um, as Steve said... just use Process Lines Containing Seth --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "BBEdit Talk" group. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com 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 "supp...@barebones.com" rather than posting to the group. -~----------~----~----~----~------~----~------~--~---