Linux script to remove a character in a file based on position.

Greetings,

We have a requirement where we need to loop in a fixed width file in linux and remove a character based on a position for every record. It would highly appreciate if someone can help to automate this.

Appreciate your time and help!
Regards

Show the input you have and the output you want please.

Hello!

Below are the details -
Input:-
Record length is say 9 bytes

abcd1234@abcd1234@abcd@ xyzs1234@

We need to replace @ but only if it comes at the end of each record. Output that we are expecting should be
abcd1234abcd1234abcd@ xyzs1234

Thanks

This might be a good place to start: