Help for this page

Select Code to Download


  1. or download this
    find . -type d | wc -l     # Number of directories
    find . -type d | sort      # Sorted listing of subdirectories
    
  2. or download this
    #!/usr/bin/perl
    use strict;
    ...
    sub wanted {
        -d && push(@directories, $File::Find::name);
    }