[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Omaha.pm] Find all files containing '</td>\n</tr>\n</table>'



$ cat j.pl
while (<>) {
  chomp;
  local $/ = undef;
  open IN, $_;
  $file = <IN>;
  print "$_\n" if ($file =~ m#</td>\n</tr>\n</table>#);
}

$ find ./ | perl j.pl
./Web/lib/Waitlist/header.entry.html
./Web/lib/Waitlist/header.report.html
./Web/lib/Perseus/debug.AvailResp
./Web/lib/Perseus/Reports/header.Reports.html
./Web/lib/Procurement/header.admin.html
./Web/lib/column_title.html
./Web/lib/Rewards/header.billing.html
./Web/lib/Surveys/header.admin.html
./Web/lib/SessionControl/record.travelagent.html


Cheers,

j