Skip to content

Commit

Permalink
Refactoring / code cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
shlomif committed Jan 31, 2025
1 parent 0cd751c commit b1a8216
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@ filt()
}
head_()
{
echo $'Old\tNew\tCount'
perl -lE '$_="Old\tNew\tCount";say;s/\w/-/g;say;'
}
(
head_
head_ | perl -lpE 's/\w/-/g'
paste <(< old-golfs.txt filt) <(< new-golfs.txt filt) | sort | uniq -c | perl -lanE 'say "$F[1]\t$F[2]\t$F[0]"'
) | perl -lanE 'printf"%-20s%-20s%s\n",@F'

0 comments on commit b1a8216

Please sign in to comment.