in reply to Re^7: Restrict file search within current filessystem using wanted subroutine
in thread Restrict file search within current filessystem using wanted subroutine
I tried excluding a specific file (say /var/log/test.out) as below:
return if ($File::Find::name =~ test.out);
This seems to work. but this might exclude test.out if it finds in any other filesystem. so tried to use the below code but doesn't work.
return if ($File::Find::name =~ /^\/var\/log\/lastlog);
Whats the best way to exlcude test.out from /var/log?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^9: Restrict file search within current filessystem using wanted subroutine
by haukex (Archbishop) on May 17, 2016 at 20:34 UTC | |
by Anonymous Monk on May 18, 2016 at 18:32 UTC | |
by haukex (Archbishop) on May 18, 2016 at 19:37 UTC |