# brew daily commands (Continuous Update) > GistID: 5f62281ce7759e22068437c2934499b9 > > GistURL: > > Author: Allex Wang (@allex) ## brew cleanup formula with multiple versions ```sh cd $(brew --cellar) && find . -maxdepth 2 |awk -F/ '$3 != "" { c[$2]++; } END { for (i in c) if (c[i] > 1) print i; }'|xargs brew cleanup ```