Technology
This is the official technology community of Lemmy.ml for all news related to creation and use of technology, and to facilitate civil, meaningful discussion around it.
Ask in DM before posting product reviews or ads. All such posts otherwise are subject to removal.
Rules:
1: All Lemmy rules apply
2: Do not post low effort posts
3: NEVER post naziped*gore stuff
4: Always post article URLs or their archived version URLs as sources, NOT screenshots. Help the blind users.
5: personal rants of Big Tech CEOs like Elon Musk are unwelcome (does not include posts about their companies affecting wide range of people)
6: no advertisement posts unless verified as legitimate and non-exploitative/non-consumerist
7: crypto related posts, unless essential, are disallowed
view the rest of the comments
Looks like uniq might be helpful, it appears built precisely like what you want.
https://www.ibm.com/docs/en/aix/7.2.0?topic=u-uniq-command
https://www.geeksforgeeks.org/linux-unix/uniq-command-in-linux-with-examples/
emacs
https://www.gnu.org/software/emacs/
https://susam.net/cc/mastering-emacs/ch05.html
https://rants.org/2023/01/count-fold-lines
https://emacsredux.com/blog/2014/03/01/a-peek-at-emacs-24-dot-4-delete-duplicate-lines/
What is different between uniq and awk?