1
vote
0answers
49 views

Tool to convert between human-readable byte sizes and bare byte counts [duplicate]

Can you recommend a Unix-style tool that converts between human-readable bytesizes (e.g., 10KiB->10240, 10240->10KiB)? By Unix-style I mean that it should do just this (i.e., be just a simple filter ...
0
votes
0answers
78 views

Tool to do computer math [closed]

For example, just now I compared file permissions in C. Turns out, the permissions were 33216! After some total confusion, with this echo $(printf %o 33216) % 100000 | bc I got it back to the ...