Skip to content

Instantly share code, notes, and snippets.

@KevinLiebergen
Created April 29, 2022 08:46
Show Gist options
  • Save KevinLiebergen/4ce39f5f69131f780f5e69889f134b65 to your computer and use it in GitHub Desktop.
Save KevinLiebergen/4ce39f5f69131f780f5e69889f134b65 to your computer and use it in GitHub Desktop.
Stuff sort by length line (AWK and forward part)
cut -f 1,21 some.tsv | grep -E "([a-z]*\|[0-9]*[\^]?){3}" | \
awk -F '\t' '{print length(), $0 | "sort -rn"}' | cut -d ' ' -f 2 > new_staff.tsv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment