At 22:42 -0700 1/5/09, Greg Reyna wrote: >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.
A UNIX Filter such as this ought to do the trick: #!/usr/bin/perl my $word = "something"; while (<>) { /$word/ or 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 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. -~----------~----~----~----~------~----~------~--~---