Hi, There exist typos in this command. I already figure out this command. The correct command should be:
find ./ -type f | awk -F / -v OFS=/ '{$NF="";dir[$0]++} END {for (i in dir) print dir[i]i}'
Regarding this command, Could you please go through the detailed explanation below.
find ./...