Write a shell script takes the name a path (eg: /venkat/wikiconsole/material/handin ), and counts all the sub directories (recursively).
Ans:
#! /bin/sh
<span style="font-size: small; color: #000000;">ls –R $1 | wc –l </span> <span style="font-size: small; color: #000000;">run the script as: </span>
% sh example2.sh /venkat/wikiconsole/material/handin