DEV Community

Discussion on: Files with the most changes on Git repository

Collapse
 
oliworx profile image
Oliver Kurmis

Your command is broken: sed is missing the d to delete the line and the second sort is missing the n option to sort numerical

git log --name-only --pretty="format:" | sed '/^\s*$/'d | sort | uniq -c | sort -nr | head -n 20
Enter fullscreen mode Exit fullscreen mode
Collapse
 
augustohp profile image
Augusto Pascutti

Thanks! I've fixed the article