Tuesday, June 23, 2020

Sort and remove duplicates but leave one

cat -n request.txt | sort -uk2 | sort -nk1 | cut -f2- > request2.txt

No comments:

Post a Comment

systemd-timesyncd

sudo apt update && sudo apt install systemd-timesyncd && sudo systemctl enable --now systemd-timesyncd