2 replies on “find maxdepth”

  1. marius@athena:~$ perl -e ‘use File::Find; find (sub { $d=$File::Find::dir=~tr[/][]; return if $d>6; if (-f and /config.xml/) {open $f,”<",$_; @a=; close $f; @m = grep /some string/i @a; print “\nfound in “,$File::Find::name,”\n”,@m if @m} },”/opt/hudson/work/jobs”)’
    Array found where operator expected at -e line 1, near “/some string/i ”
    (Missing operator before ?)
    Not enough arguments for grep at -e line 1, near “/some string/i @a”
    syntax error at -e line 1, near “/some string/i @a”
    Execution of -e aborted due to compilation errors.
    marius@athena:~$

Comments are closed.

Bad Behavior has blocked 177 access attempts in the last 7 days.