Markus Osterhoff<p>Der <a href="https://troet.cafe/tags/FPGA" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>FPGA</span></a> lief gut durch, ∃ Logdatei mit 29.385.185 Zeilen.</p><p>Die erste Spalte soll einfach nur hochzählen (wenn Zahlen fehlen = Fehler).</p><p>awk '{print $1-NR;}' tomotrg25.log | sort -n | uniq -c</p><p>… zieht von der Zahl in der ersten Spalte ($1) die Zeilennummer (NR = number of records) ab, dann wird sortiert, dann werden identische Zeilen zusammengefasst/gezählt.</p><p>Weil die Werte tatsächlich aufsteigend sind: $1-NR = const und diese Konstante kommt 29385185 mal vor 🥳</p><p><a href="https://troet.cafe/tags/Linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Linux</span></a> <a href="https://troet.cafe/tags/awk" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>awk</span></a> <a href="https://troet.cafe/tags/sort" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>sort</span></a> <a href="https://troet.cafe/tags/uniq" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>uniq</span></a> <a href="https://troet.cafe/tags/CLI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CLI</span></a></p>