Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Removing duplicate lines from files keeping the original order with Awk. Parent comment
the shortest I've got so far is
perl -lnE'say if!++$#$_'
I don't understand what's happening with $#$_ but seems like something I should look into, thanks :)
you could remove n as p is used and would be same no. of characters as
perl -ne 'print if $#$_++'
There are no comments on this comment yet.
the shortest I've got so far is
---I don't understand what's happening with $#$_ but seems like something I should look into, thanks :)
you could remove n as p is used and would be same no. of characters as
you could save one more by removing space between e switch and single quote