134 reputation
7
bio website mailto:micaroni3@gmail.com
location Campinas, Brazil
age 30
visits member for 1 year, 11 months
seen Oct 14 at 18:41

Java, Android, Scheme, Javascript etc.


Oct
23
awarded  Autobiographer
Sep
11
awarded  Critic
Jan
26
awarded  Editor
Jan
26
comment How does one find out how many bits a file has in one command?
Great. Awesome. ➜ tmp wc -c random-file-1 random-file-2 random-file-3 | awk '{$1*=8; print $0}' ➜ 32832 random-file-1 ➜ 49152 random-file-2 ➜ 4096000 random-file-3 ➜ 4177984 total
Jan
26
revised How does one find out how many bits a file has in one command?
deleted 11 characters in body
Jan
26
awarded  Custodian
Jan
26
awarded  Scholar
Jan
26
accepted How does one find out how many bits a file has in one command?
Jan
26
reviewed Approve suggested edit on How does one find out how many bits a file has in one command?
Jan
26
comment How does one find out how many bits a file has in one command?
It worked perfectly too. Thank you.
Jan
26
comment How does one find out how many bits a file has in one command?
Worked like a charm to me. ➜ tmp stat random-file-3 | sed -n 's/Size: ([0-9]*).*/\1 * 8/p' | bc ➜ 4096000
Jan
26
comment How does one find out how many bits a file has in one command?
It seems a good explanation, thank you. However in my test this command returned to me: title:7: bad math expression: operand expected at `%s ' ]2;echo 4096000 ---- the answer is 4096000, but what are the other errors?
Jan
26
comment How does one find out how many bits a file has in one command?
In my case I am using this suit test: csrc.nist.gov/groups/ST/toolkit/rng/documentation_software.html and the parameter is the number of bits I want to analyse.
Jan
26
awarded  Student
Jan
26
asked How does one find out how many bits a file has in one command?
Jan
21
awarded  Supporter