4 touch tmp
/file1 tmp
/file2 tmp
/file3
6 # four links including the original file
7 exec ln tmp
/file1 tmp
/1a
8 exec ln tmp
/file1 tmp
/1b
9 exec ln tmp
/file1 tmp
/1c
11 # five links including the original file
12 exec ln tmp
/file2 tmp
/2a
13 exec ln tmp
/file2 tmp
/2b
14 exec ln tmp
/file2 tmp
/2c
15 exec ln tmp
/file2 tmp
/2d
17 # six links including the original file
18 exec ln tmp
/file3 tmp
/3a
19 exec ln tmp
/file3 tmp
/3b
20 exec ln tmp
/file3 tmp
/3c
21 exec ln tmp
/file3 tmp
/3d
22 exec ln tmp
/file3 tmp
/3e
24 find_start p
{ tmp
/file1 tmp
/file2 tmp
/file3
-type f
( ( -links
-5 -exec echo under5 \
{\
} \
; ) -o
( -links
5 -exec echo exactly5 \
{\
} \
; ) -o
( -links
+5 -exec echo over5 \
{\
} \
; ) ) }