Se você usar IFS e read -r , poderá dividir as linhas em campos, conforme necessário, e processar os campos.
#!/usr/bin/env bash
while IFS='|' read -r column1 column2; do
if [ "$column2" == null ] ; then
echo Found null: "$column1|$column2"
fi
done < input.txt