cat access.log | grep "my_file.php" | wc -l
This command is fairly generic and will return the amount of rows in a file after applying the grep search string.
And grep does regular expressions too!
cat access.log | grep "my_file.php" | wc -l
This command is fairly generic and will return the amount of rows in a file after applying the grep search string.
And grep does regular expressions too!