= 디렉토리갯수 세기
Prompt>ls -l | grep ^d | awk '{print $9}'|wc -l
= 화일갯수 세기
Prompt>ls -l | grep ^- | awk '{print $9}'|wc -l
서브디렉토리를 포함하려면 "ls -l" 대신 "ls -Rl"을 쓰면 되겠지요~
= 디렉토리갯수 세기
Prompt>ls -l | grep ^d | awk '{print $9}'|wc -l
= 화일갯수 세기
Prompt>ls -l | grep ^- | awk '{print $9}'|wc -l
서브디렉토리를 포함하려면 "ls -l" 대신 "ls -Rl"을 쓰면 되겠지요~