mariadb/mysql-test/include/print_file_line_count.inc
Alexey Botchkov 17582a7fa3 MDEV-34680 Asynchronous and Buffered Logging for Audit Plugin.
Buffering with the IO_CACHE added to the file logger.
2025-07-31 15:40:18 +02:00

12 lines
274 B
PHP

--perl
my $fname= "$ENV{'SEARCH_FILE'}" or die "SEARCH_FILE not set";
open (FILE, '<', "$fname") or die("Unable to open '$fname': $!\n");
# Count lines in the SEARCH_FILE.
my $line_count = 0;
$line_count++ while <FILE>;
close(FILE);
print "$line_count\n"
EOF