What you meant by without success? Without success is a vague statement. At least you have to describe why you think the code was a failure: you expected this, but, the result was that.
I've been trying to apply a filter for multiple files without success.
Anyway, the red part in your code should have been simply: