✏️
TIL
  • TIL
  • bash
    • Duplicate lines in a text file
    • bash keyboard shortcuts
  • git
    • Git is a good place to keep notes
  • ssh
    • SSH Agent via systemd
  • wireshark
    • Show any field in the packet list display
    • show ja3 hashes in wireshark
  • zip
    • Run a script from a zip file
Powered by GitBook
On this page

Was this helpful?

  1. bash

Duplicate lines in a text file

Remove duplicate lines from a file without changing the order

awk '!_[$0]++' file.txt

Show only duplicates

awk '_[$0]++' file.txt

show unique by an individual column

awk '!_[$1]++' file.txt

references

@M_C_Stott (backup)

PreviousbashNextbash keyboard shortcuts

Last updated 4 years ago

Was this helpful?