mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Merge branch '10.7' into 10.8
This commit is contained in:
16
mysql-test/include/grep.inc
Normal file
16
mysql-test/include/grep.inc
Normal file
@@ -0,0 +1,16 @@
|
||||
# Grep file for regular expression and output to STDOUT
|
||||
#
|
||||
# Usage:
|
||||
# --let $grep_file= /path/to/your/file
|
||||
# --let $grep_regex= your_regex_string
|
||||
# --source include/grep.inc
|
||||
|
||||
--perl
|
||||
open (my $fh, "<", "$ENV{grep_file}") or die $!;
|
||||
while (<$fh>)
|
||||
{
|
||||
/$ENV{grep_regex}/ &&
|
||||
print;
|
||||
}
|
||||
close $fh;
|
||||
EOF
|
Reference in New Issue
Block a user