Say xyz is a file with a list of files and directories. (The files and directories are all on the working system itself)
You need to print only the directories amongst them.
for i in `cat xyz`; do if [ -d $i ] ; then echo $i ;fi; done
will print out only directories among them.
You need to print only the directories amongst them.
for i in `cat xyz`; do if [ -d $i ] ; then echo $i ;fi; done
will print out only directories among them.