in reply to Re: Help editing a file based off seach criteria
in thread Help editing a file based off seach criteria
How do I take the starting position, of the file where END is found (only will occur one time), and move up one position to write to the file?#!/usr/bin/perl open DATA, "</home/file.conf"; my @list = grep /\END\b/, <DATA>; chomp @list; print "$_\n" foreach @list;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Help editing a file based off seach criteria
by Corion (Patriarch) on Jan 12, 2009 at 20:07 UTC | |
by perlnewb123 (Sexton) on Jan 13, 2009 at 15:52 UTC | |
by Corion (Patriarch) on Jan 13, 2009 at 15:55 UTC | |
by perlnewb123 (Sexton) on Jan 13, 2009 at 16:47 UTC | |
by Corion (Patriarch) on Jan 13, 2009 at 17:12 UTC | |
|