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

Git get all remote branches

git branch -r \ | grep -v '\->' \ | sed "s,\x1B\[[0-9;]*[a-zA-Z],,g" \ | while read remote; do \ git branc...