Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

create a script that counts the number of directories in the path.

ls | wc -l #Count files on current directory
ls path/to/dir | wc -l #Count files on specific directory path
 
PREVIOUS NEXT
Tagged: #create #script #counts #number #directories
ADD COMMENT
Topic
Name
9+4 =