 |
bash - How to calculate values in a shell script? - Unix & Linux Stack Exchange
I run this command in the terminal: grep "bla bla blah" blah* | echo "Blah: $(wc -l) / $(ls | wc -l) * 100" And I get this output: Blah: 44 / 89 * 100 What I expect to see: 49.4 Is there... ... First of all, you've not specified your shell. I'll presume y
unix.stackexchange.com |
 |