in reply to [KSH convert to PERL] Rollup multi line values to single row outputs.

scriptname $MYFILE > OTHERFILE

#! perl -slw use strict; my $line; while( <> ) { chomp; m[^/\*] and next; m[^job_name:\s*(.+?)$] and $line = $1 .':'; m[^days_of_week:\s*(.+?)$] and $line .= $1 . ':'; m[^start_times:\s*(.+?)$] and print $line . $1; }

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". I'm with torvalds on this
In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked
  • Comment on Re: [KSH convert to PERL] Rollup multi line values to single row outputs.
  • Download Code