my pwd contains files and directories named nick and emptydr
ls -l|grep dwrx|cut -d' ' -f9
returns the name of the directories in my pwd.
let's say I save the result of the above command into a file named listing.
then the file listing will contain the following"
and now, I would like to write my script so my script uses each line in the file named listing as the input of the file. How can I do that?