I am trying to extract the Diagram ID from a file which looks like
id DiaMatch(13) = Sector(A1x12, 5, 47) * Shift(k2, -k2+k1, [], k1, -p2+k1, []);
id DiaMatch(14) = Sector(A2x12, 5, 47) * Shift(k2, k1-k2, [], k1, -p2+k1, []);
id DiaMatch(15) = Sector(A1, 5, 47) * Shift(k2, -k2+k1, [], k1, -p1+k1, []);
id DiaMatch(16) = Sector(A2, 5, 47) * Shift(k2, k1-k2, [], k1, k1-p1, []);
id DiaMatch(01) = Sector(A3x12, 6, 111) * Shift(k2, p2-k1, [], k1, k1-k2+p1, []);
id DiaMatch(02) = Sector(A3, 6, 111) * Shift(k2, -k1+k2, [], k1, k1, []);
id DiaMatch(07) = Sector(A1, 6, 111) * Shift(k2, -k2, [], k1, p1-k1, []);
id DiaMatch(08) = Sector(A2, 6, 111) * Shift(k2, -k2, [], k1, -k1+p1, []);
id DiaMatch(09) = Sector(A3x12, 6, 123) * Shift(k2, k1, [], k1, k2, []);
id DiaMatch(10) = Sector(A2x12, 6, 63) * Shift(k2, p2-k2, [], k1, p2-k1+p1, []);
id DiaMatch(11) = Sector(A3, 6, 123) * Shift(k2, k1, [], k1, k2, []);
id DiaMatch(12) = Sector(A2, 6, 63) * Shift(k2, p1-k2, [], k1, p2-k1+p1, []);
I only want to extract the numbers 13,14,15 and so on and save in a new file, and other things to be excluded.
I am very new in shell and could not try anything without opening and reading the file
while read line;
do
echo $line
done <jobs.yaml