ocehb: (Default)
[personal profile] ocehb

# find /etc -xdev -type f -print0 | \
  xargs -0 ls -i | \
  perl -nle '($a,$b) = split " "; push @{$hash{$a}},$b; 
             END { while (($a,$b) = each %hash) { print "$a: @$b" if ($#$b > 0); } }'



  • find /etc -xdev -- поиск файлов на /etc.

  • ls -i -- печать i-node номер и имя файла.

  • perl ... -- упихивание всего в хеш и вывод в конце только тех имен файлов, у которых имен на один i-node больше одного.

Profile

ocehb: (Default)
ocehb

January 2021

S M T W T F S
     12
345 6789
10111213141516
17181920212223
24252627282930
31      

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 6th, 2026 05:15 pm
Powered by Dreamwidth Studios