I have a series of files that are either delimited and fixed width, containing many rows of both character and numeric values like so (delimited example):
Smith,Audrey,Ford,2000,21300.99
Miller,Heath,Dodge,1990,2000.99
Miller,Heath,Dodge,2010,15200.99
How can I convert this into the binary file:
01010011 01101101 01101001 01110100 01101000 00101100 01000001 01110101 01100100 01110010 01100101 01111001 00101100 01000110 01101111 01110010 01100100 00101100 00110010 00110000 00110000 00110000 00101100 00110010 00110001 00110011 00110000 00110000 00101110 00111001 00111001 00001010 01001101 01101001 01101100 01101100 01100101 01110010 00101100 01001000 01100101 01100001 01110100 01101000 00101100 01000100 01101111 01100100 01100111 01100101 00101100 00110001 00111001 00111001 00110000 00101100 00110010 00110000 00110000 00110000 00101110 00111001 00111001 00001010 01001101 01101001 01101100 01101100 01100101 01110010 00101100 01001000 01100101 01100001 01110100 01101000 00101100 01000100 01101111 01100100 01100111 01100101 00101100 00110010 00110000 00110001 00110000 00101100 00110001 00110101 00110010 00110000 00110000 00101110 00111001 00111001
from the command line? Would it be different for delimited or fixed width files?
A similar question asked was Convert file with integers written in ascii to binary file of integers, but this does not work for mixed type and multiple entry rows.
I am on a x86_64 GNU/Linux (little endian) machine.
EDIT:
Is there a simple way to actually encode the ASCII text file to binary instead of just viewing the human readable version?