If the script must iterate over the lines of its input, I've found perl -nlE to be a godsend. Basically it is equivalent to
while(<>){
chomp;
<insert your -E code here>
} while(<>){
chomp;
<insert your -E code here>
}No comments yet.