I have 2 different directories. The first has 2 sub-folders A and B. The second as 2 sub-folders C and D and script named "script".There is a code of "script" to list 2 sub-folders C and D
I would like to ask how can I make a change if I would like to list 2 sub-folders A and B in the first directory ( using "script" )Code:#!/bin/sh for file in * do [ -d $file ] && echo $file done