BASH apache to seek particular file name
Question
i want to find every log file named 'justjoe_log', on an apache server. I want to delete them all. how do i do it ?
Solution
locate justjoe_log|xargs rm -rf
You may want to just do locate first to avoid deleting data unintentionally.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow