Answer the question
In order to leave comments, you need to log in
Linux, Bash, How to convert text to bytes?
How to convert text to bytes?
And then translate the bytes back into text?
I think it is necessary to translate into another number system from 10 to 2-rich chtoli?
But again the question is how?
Answer the question
In order to leave comments, you need to log in
$ echo 'test' | perl -lpe '$_=unpack"B*"'
01110100011001010111001101110100
$ echo 01110100011001010111001101110100 | perl -lpe '$_=pack"B*",$_'
test
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question