in reply to Re^3: Help editing a file based off seach criteria
in thread Help editing a file based off seach criteria
#!/usr/bin/perl open DATA, "</home/file.conf"; while (<DATA>) { if(m/\END\b/) { print "$.\n"; } } close(DATA);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Help editing a file based off seach criteria
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 | |
by perlnewb123 (Sexton) on Jan 13, 2009 at 17:26 UTC | |
by Corion (Patriarch) on Jan 13, 2009 at 17:39 UTC | |
|