Search Results

Search: Posts Made By: ngabrani
7,388
Posted By ngabrani
Arithmetic with bash
I need to divide the number of white spaces by total number of characters in a file using bash. I am able to get the number of white spaces correctly using:


tr -cd [:space:] < afile | wc -c
...
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 02:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy