Command to count all characters in file.
hi!
anybody know and command to count any characters in file? I would like to know the total number of character " (quote) in file. My idea is to check if in a script the total number of this character is pair. thanks |
cat <filename> | tr '\n' ' ' | tr '"' '\n' | wc -l
|
thanks!
|
Quote:
Code:
grep -o '"' input.txt | wc -l |
Quote:
|
All times are GMT -5. The time now is 05:48 AM. |