-
-
Save ppflrs/77965b375cad737d238e7667f5c3c609 to your computer and use it in GitHub Desktop.
cat $BIN_FILE | tr -d '\0' > $NEW_FILE |
woo thanks
Awesome. It works. I downloaded a csv file from a database and I got all NA when I read it to python using pandas.read_csv function.
After I check the datatype of the file using this command: file -i , and found it is charset=binary but not ascii.
It turned out this command fails at some files. Do you have ideas about why it works on some files and fails at others?
thanks man, is working for me... just stills giving some trash the output but almost all i need is there
i tried above and then ran $ file -bi file.out , still see "application/octet-stream; charset=binary" , please help
Doesn't work for me: tr -d \0 : command not found
I am trying to load some files from (on ubuntu20.04)
promptly : 2019/691-Modulo64/Modulo64/RECH0.csv
But in python (pandas module) i have an error :
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf0 in position 442: invalid continuation byte
Please, any ideas.
awesome. it's works