Re: [CentOS] text processing problem with bash/perl

2009-02-13 Thread Dennis Kaptain
# Put Perl in paragraph mode $/ = ''; # For each record ... I love this list! Paragraph mode REALLY cleans things up. Although it worked, this makes my first attempt look really amateurish. Be sure to put the definition of $/ inside a code block { } if you are using it inside a program

Re: [CentOS] text processing problem with bash/perl

2009-02-12 Thread Dennis Kaptain
Hi, Anyone has some ways for the following text processing problem? I have a text file containing two stanzas attached below. I want to uncomment the stanza with 'host=localhost' line, while left the other stanza unchanged. ... /* udp_send_channel { host=localhost port =