simple if filter in bash