Help for this page

Select Code to Download


  1. or download this
        -r  File is readable by effective uid/gid.
        -w  File is writable by effective uid/gid.
    ...
        -M  Script start time minus file modification time, in days.
        -A  Same for access time.
        -C  Same for inode change time (Unix, may differ for other platfor
    +ms)
    
  2. or download this
    my $file = './thefile.sh';
    print "File exists and seems to contain data" 
    if (-e $file && -f $file && (-s $file) > 0);