How to Get a Character Count in Unix
If you want to find out how many characters are in a file here's how! You can also get a word count in Unix which is useful if you need to keep track of more than just individual characters.
If you want to find out how many characters are in a file here's how! You can also get a word count in Unix which is useful if you need to keep track of more than just individual characters.
Change directories to the directory where your target file is located, then type:
wc -l filename
replacing filename with the actual name of your file.
This should output:
$ wc -m test.php
427 test.php
Need to change the case of characters to all caps or all lowercase? This is easily done using Vim. This guide will show you how to change the case of characters in Vim.