for line in $(cat file) do Extract $line if [ "$x" != "false" ] then echo $line fi done