sed -n -e ‘/ ‘$1′ /p’ /var/lib/mysql/mysql.log > /var/lib/mysql/filterlog.output.txt

Advertisements