I am writing a Bash script which should test if every line in input meet certain condition.
Is there a way to take the predicate and reduce all the line to either 0 or 1 so I don't have to code the looping code myself using a utility that is routinely standard or readily available in Linux distributions?