Last active
December 10, 2023 19:24
-
-
Save AvdLee/52109fe9802ebffa70e624cdf6abef69 to your computer and use it in GitHub Desktop.
Find your project's Swift file with the most lines of code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -type f -name "*.swift" -exec grep -H -c '[^[:space:]]' {} \; | \sort -nr -t":" -k2 | awk -F: '{printf("Your largest file %s contains: %s lines \n", $1, $2); exit;}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Your largest file ./Vendor/Rabbit/RabbitTests/CoreData Migrations/Stores/Migration Validation Data/Version107ToVersion200LargeCollectionData.swift contains: 1825 lines
It's a test related file, though! But still a lot 😄