How to extract text portion of a binary file in linux/bash? -


i have binary file. if open vi, shows sequences of human-readable text , binary characters. best way extract human-readable portion using bash?

i thinking, maybe can on grep or sed pattern?

$ cat file1.bin | grep '????'  > newfile.txt 

use strings utility - that's it's designed for.


Comments