Page 1 of 1
[Bash] How to decode Octal code on Debian
Posted: 2025-02-19 17:52
by f1izzzy
Hi everyone, Initially, thank you for responding.
I searched a lot but didn't find how to decode Octal code to text form in Debian with command line, I will appreciate a lot if someone respond and give some direction to do it. Thank you!
Re: [Bash] How to decode Octal code on Debian
Posted: 2025-02-19 18:29
by CwF
Have a look at packages ascii, ascii2binary, bindechexascii, and a few hex editors maybe. Also some python or tcl libraries, and maybe even a few calculators can do it.
Re: [Bash] How to decode Octal code on Debian
Posted: 2025-02-19 18:40
by lindi
In shell you can use for example
to convert octal number 213 to decimal number 139. However, I would strongly suggest writing this in python so that your data stays private from other users of the system.
Re: [Bash] How to decode Octal code on Debian
Posted: 2025-02-20 03:57
by Aki
Hello,
f1izzzy wrote: 2025-02-19 17:52
I searched a lot but didn't find how to decode Octal code to text form in Debian with command line
What exactly do you mean by "decode"? Do you want to convert from octal notation to what other notation (decimal, binary, hexadecimal, ...) and in what format (numeric, character, other, ...) ? Can you give an example ?