Hacker News new | ask | show | jobs
by tyingq 1357 days ago
This looks very handy, and maps closely to something I use Perl for, but that requires more boilerplate.

But, if you find yourself wanting something like this, and don't want to install anything new... Here's something close in Perl that uses File::stat (this ships with Perl):

  find . -print | perl -MFile::stat -nE 'chomp;$s=stat($_);$s->nlink > 1 && say'
1 comments

Also see `find2perl`

I use that occasionally when coding up hairy `find` invocations.