經安全檢測,此網站為安全網站,請放心前往原始網址!

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

網址安全性掃描由 google 提供