instpkg cleanup
[cmdllinux.git] / scripts / _findhardlink
blob5958c91efa12e81f72c9f425b9d48b5c6ddeca18
1 #! /bin/sh
3 find -mindepth 1 -type f -printf "%n %p\n"| grep -v "^1 " | \
4 while read num name; do
5 inode=`LC_ALL=C stat "$name" | grep "Inode:" | sed "s/[[:space:]]\+/ /g" | cut -d " " -f 4`
6 echo "$inode $name"
7 done