Smith, Derek wrote:
I want to use truncate to delete a matched line out a named.conf file on
my DNS box.

Here is my code


As others have said, this will lop off the end of the file.

Another option is to run perl -i and edit the file in place.

while(<>){ print if /Acheck\-names/ }

But under this example it would probably be easier and simpler to use the shell grep command. ;)

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to