grep 'Search string' access.log | wc -l
is the same as (cat is not needed here):
cat access.log|grep 'Search string' | wc -l
Also I prefer not using -v in tar. It shows a lot of noise and I may miss some important error.
-v
Thanks for sharing your commands. 😀
In fact you can even remove the wc command with the -c flag of grep 😉
You're right! I'm always forgetting it can count.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
is the same as (cat is not needed here):
Also I prefer not using
-v
in tar. It shows a lot of noise and I may miss some important error.Thanks for sharing your commands. 😀
In fact you can even remove the wc command with the -c flag of grep 😉
You're right! I'm always forgetting it can count.