'chomp' command added.
'rule' is in Perl, using a perl file instead of a one-liner in a Bash file.