Skip to content

Commit

Permalink
Update .functions
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinav-nath authored Jun 15, 2023
1 parent afb458a commit c334765
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dev-setup/.functions
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,9 @@ function inhand() {
echo $((($1 * 0.75) / 12))
fi
}

# find top 5 files with maximum number of lines
function find_top_files() {
local file_pattern="${1:-*.java}"
find . -name "$file_pattern" -type f -exec wc -l {} + | sort -rn | head -n 6 | tail +2
}

0 comments on commit c334765

Please sign in to comment.