Post History
You can use strings (comes with binutils, should usually be available) to get readable strings out of binary files. Summary from the manual: For each file given, GNU strings prints the printabl...
#2: Post edited
- You can use [`strings`](https://www.man7.org/linux/man-pages/man1/strings.1.html) (comes with binutils, should usually be available) to get readable strings out of binary files.
- Summary from the manual:
- > For each file given, GNU strings prints the printable character
- sequences that are at least 4 characters long (or the number given
- with the options below) and are followed by an unprintable
character.
- You can use [`strings`](https://www.man7.org/linux/man-pages/man1/strings.1.html) (comes with binutils, should usually be available) to get readable strings out of binary files.
- Summary from the manual:
- > For each file given, GNU strings prints the printable character
- sequences that are at least 4 characters long (or the number given
- with the options below) and are followed by an unprintable
- character.
- Using it on your example:
- ```console
- $ echo -e '\e[1;31;103mHello\b\b\b\b\bこんにちは\e[0m' | strings
- [1;31;103mHello
- ```
#1: Initial revision
You can use [`strings`](https://www.man7.org/linux/man-pages/man1/strings.1.html) (comes with binutils, should usually be available) to get readable strings out of binary files.
Summary from the manual:
> For each file given, GNU strings prints the printable character
sequences that are at least 4 characters long (or the number given
with the options below) and are followed by an unprintable
character.
