this is shell in MAC,
why is word count (wc) showing wrong character count?
sh-3.2# /Users/orly/Desktop/random.password.py 1
5
sh-3.2# /Users/orly/Desktop/random.password.py 1 | wc -m
2
sh-3.2#
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is probably a newline character in your file. That would explain a char count of 2.
ADDENDUM: Try this:
on the “file”.
ADDENDUM 2:
In more detail:
Make sense?