In a bash shell, I am trying to write a short one-liner to divide the line count of one file by the line count of another. I would like show at least two decimal places from floating-point division.
In other words, I would like a one-liner to print the percentage of one file's line count of another.
For example, if I have a first file (first.txt) with 25 lines and a second file (second.txt) with 100 lines, the one-liner would output .25
.