while read -r line
do
[ ! -s file2.txt ] && break
done <file.txt
, , . , - , . , . , , , , , break - , , , , , , , "STOP", . , while read -r lineare such common idioms that they are essentially the software equivalent of common street signs. You will immediately recognize them, without mentally disassembling them. In any case, as I said, this is just my personal business. Do not be shy.
source
share