17
type = substr($2, 1, 1)
21
printf "%s/%s/%s\n", ino, name, (ftype_unknown ? "u" : type)
17
ls_afi = "ls -afi " dir
18
ls_al = ("ls -lna " dir " | sed 1d")
20
for (i = 1; (ls_afi | getline) > 0; i++) {
21
# inode number is $1, filename is read of record
31
for (j = 1; (ls_al | getline) > 0; j++) {
32
type_let = substr($0, 1, 1)
35
$1 = $2 = $3 = $4 = $5 = $6 = $7 = $8 = ""
43
printf("mismatch: %d from `ls -afi' and %d from `ls -l'\n", i, j) > "/dev/stderr"
45
for (i = 1; i in names; i++)
46
printf("%s/%s/%s\n", ino[names[i]], names[i], (ftype_unknown ? "u" : type[names[i]]))