Help for this page

Select Code to Download


  1. or download this
    $ for i in a b c; do cd $i; echo "DIR: `pwd`"; ls -l; cd ..; done
    DIR: /home/ken/tmp/pm_11135362/a
    ...
    DIR: /home/ken/tmp/pm_11135362/c
    total 1
    -rw-r--r-- 1 ken None 7 Jul 25 16:51 read_write
    
  2. or download this
    #!/usr/bin/env perl
    
    ...
    
        return;
    }
    
  3. or download this
    ken@titan ~/tmp/pm_11135362
    $ ./pm_11135362_file_find_example.pl
    ...
    /home/ken/tmp/pm_11135362/b/read_only is not writable.
    /home/ken/tmp/pm_11135362/c is not a normal file.
    OK to WRITE: /home/ken/tmp/pm_11135362/c/read_write