How to read character by character in a file

Hi,

How read character by character from a file .
and i need replace '.' with null if it comes as a 5 character
i am beginner ...please help me

gawk

gawk 'BEGIN{FS=""}$5=="."{$5=""}1' OFS= file

next time, show what you have tried.

---------- Post updated at 07:31 AM ---------- Previous update was at 07:30 AM ----------

gawk

gawk 'BEGIN{FS=""}$5=="."{$5=""}1' OFS= file

next time, show what you have tried.