Recent content by d_vincent

  1. D

    figure out the complicated command

    This command is to count the inodes in current dir. In other words. we want to know how many files in each children directories. find ./ -type f ### find the files in all children directory | awk -F / -v OFS=/ ' ### setting field separator and output field separator as / { $NF=""; ### make the...
  2. D

    figure out the complicated command

    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 ./...
  3. D

    figure out the complicated command

    Hi everyone, I am trying to figure out the command below; find ./ -type f | awk -F / -v OFS=/ '{$NF="";dir[$0]++} END {for (i in dir) print diri}' the output is like: 6./Release_1_18_1_0_06_26/metadata/3_Control_Files/ 5./Release_1_18_1_0_06_26/metadata/7_SAS_Code/...
Top