Hi,
I have a file with one message. That message has multiple lines and also contains different control characters (like ^A,^M). I want to split this message string into different substrings (unix shell variables) each consisting of 255 characters.
Please let me know how can i achieve this. Please see the below example string for details.
^A<abcdefghijklmnopqrstuvwxyz^M
<xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx^M
1000.000000000000000000000^M
adfdafdasisdfadsfdsdsaf:fasdflds%fasdfldasjf^M

This is very urgent and I am a beginner to unix shell scripts.

Thanks for your help in advance,
Sankar.