Logo 
Search:

Unix / Linux / Ubuntu Articles

Submit Article
Home » Articles » Unix / Linux / Ubuntu » Homework HelpRSS Feeds

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

Posted By: Yasmin Silva     Category: Unix / Linux / Ubuntu     Views: 5149

Write a shell script that prints names of all sub-directories present in the current directory.

Code for Shell script that prints names of all sub-directories present in the current directory in Unix / Linux / Ubuntu

for dir in ls  
doif [ $dir  
  
Share: 



Yasmin    Silva
Yasmin Silva author of Shell script that prints names of all sub-directories present in the current directory is from Salvador, Brazil.
 
View All Articles

Related Articles and Code:


 

Other Interesting Articles in Unix / Linux / Ubuntu:


 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!