shell - filtering masks by gender