Write script that prints names of all sub directories present in the current directory

 


Write script that prints names of all sub directories present in the current directory



Program :-


#Write script that prints names of all sub directories present in the current directory

 

#!/bin/bash

echo "utsav Gohel - 91900104011"

 

echo "Print files and directories.."

for b in $(ls)

do

  echo "$b"

done

 

 

Output :-