Skip to content

Instantly share code, notes, and snippets.

@renaudcerrato
Last active August 26, 2019 08:56
Show Gist options
  • Save renaudcerrato/2b761f86903b6c202379702dc810cb00 to your computer and use it in GitHub Desktop.
Save renaudcerrato/2b761f86903b6c202379702dc810cb00 to your computer and use it in GitHub Desktop.
Kotlin vs Java Statistics
#!/usr/bin/env bash
KOTLIN=$(find . -name "*.kt" -exec cat {} \; | wc -l)
JAVA=$(find . -name "*.java" -exec cat {} \; | wc -l)
echo Kotlin: $KOTLIN lines \($(echo scale=2\; 100 \* $KOTLIN / \( $KOTLIN + $JAVA \) | bc -l)%\)
echo Java : $JAVA lines \($(echo scale=2\; 100 \* $JAVA / \( $KOTLIN + $JAVA \) | bc -l)%\)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment