Hi everyone, I am trying to figure out the command below;
the output is like:
This command am counting the number of incode in the current path. However, I did not understand
, especially
. anyone can explain that?
Code:
find ./ -type f | awk -F / -v OFS=/ '{$NF="";dir[$0]++} END {for (i in dir) print diri}'
Code:
6./Release_1_18_1_0_06_26/metadata/3_Control_Files/
5./Release_1_18_1_0_06_26/metadata/7_SAS_Code/
5./Release_1_18_1_0_06_26/others/1_content/
1./.cache/pip/selfcheck/
2./Release_1_18_1_0_06_26/metadata/5_Status/
1./Release_1_18_1_0_06_26/compute/2_packages/
1./sasuser.v94/
4./metadata/FR1_Release_1.17.1.1/3_Control_Files/
4./Release_1_18_1_0_06_26/metadata/6_Patches/
Code:
{$NF="";dir[$0]++} END {for (i in dir) print dir[i]i}
Code:
dir[$0]
Last edited: